diff options
Diffstat (limited to 'doPatch.go')
| -rw-r--r-- | doPatch.go | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -12,7 +12,11 @@ import ( func doPatchInit() { if me.forge.Patchsets != nil { - log.Info("IGNORE: patches already initalized") + if me.forge.Patchsets.Len() == 0 { + // log.Info("IGNORE: patches are empty") + } else { + log.Info("IGNORE: patches already initalized len =", me.forge.Patchsets.Len()) + } } if err := me.forge.LoadPatchsets(); err != nil { log.Info("patches failed to open", err) @@ -82,6 +86,10 @@ func doPatch() error { me.forge.Patchsets.PrintTable() // return doPatchList() applied := findApplied() + if applied.Len() == 0 { + log.Info("no patches have to appled to the devel branch yet") + return nil + } // for patch := range applied.IterAll() { // log.Info("SEND APPLIED: newhash:", patch.NewHash, "commithash:", patch.CommitHash, "patch", patch.Namespace) // } |
