only continue if all branches are user branch

This commit is contained in:
Jeff Carr 2024-12-30 04:39:39 -06:00
parent 6127146a94
commit a9b2fcecbb
1 changed files with 10 additions and 0 deletions

10
main.go
View File

@ -25,6 +25,16 @@ func main() {
me.forge.ConfigPrintTable()
os.Setenv("REPO_WORK_PATH", me.forge.GetGoSrc())
all := me.forge.Repos.SortByFullPath()
for all.Scan() {
repo := all.Next()
if repo.IsUserBranch() {
continue
}
log.Info("you can not continue if repos are not on master branches")
os.Exit(-1)
}
log.DaemonMode(false)
me.myGui = gui.New()
if !myargv.GitPull {