diff options
| author | Jeff Carr <[email protected]> | 2025-09-25 05:49:10 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-25 05:49:10 -0500 |
| commit | 3c6ecda8a18c506a432eb62493523e37bc41c1bc (patch) | |
| tree | a10a0f85132acab5e9776c77eee2f6f56dfd2a49 /doNormal.go | |
| parent | a90d64302b752092eb657a9a3770c58a9756c3f5 (diff) | |
minor fixv0.25.23
Diffstat (limited to 'doNormal.go')
| -rw-r--r-- | doNormal.go | 8 |
1 files changed, 8 insertions, 0 deletions
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) { |
