maybe safely exit when finished
This commit is contained in:
parent
8e9408bac8
commit
279182ab62
|
@ -173,6 +173,9 @@ func doRelease() bool {
|
||||||
|
|
||||||
if err := check.AutogenRestore(cname); err != nil {
|
if err := check.AutogenRestore(cname); err != nil {
|
||||||
log.Info("AutogenRestore() failed", err)
|
log.Info("AutogenRestore() failed", err)
|
||||||
|
} else {
|
||||||
|
cmd := []string{"git", "push", "origin", "refs/notes/*:refs/notes/*"}
|
||||||
|
check.Run(cmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !me.current.Status.DoAll(retag) {
|
if !me.current.Status.DoAll(retag) {
|
||||||
|
|
|
@ -138,13 +138,15 @@ func createReleaseBox(box *gui.Node) {
|
||||||
second := findCounter
|
second := findCounter
|
||||||
log.Info("doReleaseAll() first =", first, "second =", second)
|
log.Info("doReleaseAll() first =", first, "second =", second)
|
||||||
if first == 0 {
|
if first == 0 {
|
||||||
log.Info("doReleaseAll() first is 0. everything is done")
|
log.Info("doReleaseAll() first is 0. everything is done. second is", second)
|
||||||
log.Info("exit() here safely")
|
log.Info("exit() here safely")
|
||||||
buttonEnable()
|
me.forge.ConfigSave()
|
||||||
|
okExit("")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if first != second {
|
if first != second {
|
||||||
|
// try a third time
|
||||||
log.Info("doReleaseAll() first second do not match. findNext()")
|
log.Info("doReleaseAll() first second do not match. findNext()")
|
||||||
findNext()
|
findNext()
|
||||||
ok, duration := doReleaseAll()
|
ok, duration := doReleaseAll()
|
||||||
|
|
Loading…
Reference in New Issue