summaryrefslogtreecommitdiff
path: root/doCommit.go
diff options
context:
space:
mode:
Diffstat (limited to 'doCommit.go')
-rw-r--r--doCommit.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/doCommit.go b/doCommit.go
index b7f6fde..461af47 100644
--- a/doCommit.go
+++ b/doCommit.go
@@ -17,12 +17,21 @@ func doCommit() {
doCheckDirtyAndConfigSave()
found := findDirty()
all := found.All()
+ var newpatches bool
for all.Scan() {
repo := all.Next()
log.Info("do a commit on repo", repo.GetGoPath())
if err := doCommitRepo(repo); err != nil {
badExit(err)
}
+ newpatches = true
+ }
+ if newpatches {
+ // if there are enw patches, autocommit them
+ _, err := me.forge.SubmitDevelPatchSet("forge auto commit")
+ if err != nil {
+ badExit(err)
+ }
}
okExit("")
}