minor fix

This commit is contained in:
Jeff Carr 2025-09-25 05:49:10 -05:00
parent a90d64302b
commit 3c6ecda8a1
1 changed files with 8 additions and 0 deletions

View File

@ -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) {