verify all repos are on master
This commit is contained in:
parent
2f6b497b12
commit
1528d8d507
5
main.go
5
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)
|
||||
|
|
Loading…
Reference in New Issue