From a9b2fcecbb87a599f7bc8dfec214bda09fbdc637 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 30 Dec 2024 04:39:39 -0600 Subject: [PATCH] only continue if all branches are user branch --- main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.go b/main.go index cff1c7d..e0a795c 100644 --- a/main.go +++ b/main.go @@ -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 {