summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-17 23:44:34 -0500
committerJeff Carr <[email protected]>2025-08-17 23:44:34 -0500
commit1528d8d5077cc190afbe5e2b16c35f2e20a9b9b7 (patch)
tree800ff7a4eacc432e6b83376e3a8eaa06166338ac
parent2f6b497b12ada0b920fb61f80a5756c3aded599a (diff)
verify all repos are on masterv0.23.92v0.23.91v0.23.90v0.23.89v0.23.88
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index 8a7647f..063fa2d 100644
--- a/main.go
+++ b/main.go
@@ -104,6 +104,11 @@ func main() {
// todo: add this to forgepb
me.startRepo = me.forge.FindWorkingDirRepo()
+ if _, count, _, err := me.forge.IsEverythingOnMaster(); err != nil {
+ log.Info("not everything is on the master branch (", count, "repos)")
+ os.Exit(-1)
+ }
+
if me.startRepo == nil {
pwd, _ := os.Getwd()
msg := fmt.Sprint("Can not run if pwd is not a repo", pwd)