diff --git a/doNormal.go b/doNormal.go index bfae45d..9f7df78 100644 --- a/doNormal.go +++ b/doNormal.go @@ -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) {