예제 #1
0
func fixBranch(b string, gh githelper.GitHelper) githelper.GitBranch {
	var branch githelper.GitBranch
	if b != "" {
		branch = githelper.GitBranch{Name: b}
	} else {
		branch = gh.CurrentBranch()
	}
	return branch
}