fix this odd case

This commit is contained in:
Jeff Carr 2025-09-25 15:51:05 -05:00
parent f4838d7500
commit 92be907bce
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ func doNormal() bool {
s := fmt.Sprintf("repair the %s branch on %s", bname, repo.FullPath) s := fmt.Sprintf("repair the %s branch on %s", bname, repo.FullPath)
if fhelp.QuestionUser(s) { if fhelp.QuestionUser(s) {
// todo, check to make sure we aren't on this branch // todo, check to make sure we aren't on this branch
repo.RunVerbose([]string{"git", "checkout", repo.GetMasterBranchName()})
repo.RunVerbose([]string{"git", "branch", "-D", bname}) repo.RunVerbose([]string{"git", "branch", "-D", bname})
repo.RunVerbose([]string{"git", "checkout", bname}) repo.RunVerbose([]string{"git", "checkout", bname})
} }