delete these odd branches

This commit is contained in:
Jeff Carr 2025-09-25 15:32:42 -05:00
parent 643c9c9220
commit 3bdf0143be
1 changed files with 6 additions and 0 deletions

View File

@ -187,6 +187,12 @@ func doRepoCleanDevel(repo *gitpb.Repo) error {
}
if err := justDeleteTheDevelBranchAlready(repo); err != nil {
log.Info("justDeleteTheDevel() err", repo.GetGoPath(), err)
bname := repo.GetDevelBranchName()
s := fmt.Sprintf("delete this odd devel %bname branch %s?", bname, repo.FullPath)
if fhelp.QuestionUser(s) {
repo.RunVerbose([]string{"git", "branch", "-D", bname})
// repo.RunVerbose([]string{"git", "checkout", bname})
}
configSave = true
return err
}