minor fix
This commit is contained in:
parent
a90d64302b
commit
3c6ecda8a1
|
@ -34,6 +34,14 @@ func doNormal() bool {
|
|||
}
|
||||
repo := me.forge.Repos.FindByFullPath(path)
|
||||
if stat.Err == ErrorLocalDevelBranch {
|
||||
bname := repo.GetDevelBranchName()
|
||||
s := fmt.Sprintf("repair the %s branch on %s", bname, repo.FullPath)
|
||||
if fhelp.QuestionUser(s) {
|
||||
repo.RunVerbose([]string{"git", "branch", "-D", bname})
|
||||
repo.RunVerbose([]string{"git", "checkout", bname})
|
||||
}
|
||||
}
|
||||
if stat.Err == ErrorLocalMasterBranch {
|
||||
bname := repo.GetMasterBranchName()
|
||||
s := fmt.Sprintf("repair the %s branch on %s", bname, repo.FullPath)
|
||||
if fhelp.QuestionUser(s) {
|
||||
|
|
Loading…
Reference in New Issue