only continue if all branches are user branch
This commit is contained in:
parent
6127146a94
commit
a9b2fcecbb
10
main.go
10
main.go
|
@ -25,6 +25,16 @@ func main() {
|
||||||
me.forge.ConfigPrintTable()
|
me.forge.ConfigPrintTable()
|
||||||
os.Setenv("REPO_WORK_PATH", me.forge.GetGoSrc())
|
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)
|
log.DaemonMode(false)
|
||||||
me.myGui = gui.New()
|
me.myGui = gui.New()
|
||||||
if !myargv.GitPull {
|
if !myargv.GitPull {
|
||||||
|
|
Loading…
Reference in New Issue