diff options
| author | Jeff Carr <[email protected]> | 2025-09-08 13:19:40 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-08 13:19:40 -0500 |
| commit | 11bf5481c7cb393cf2d3416a9f64be078da27e85 (patch) | |
| tree | c1137d44419384e2d65e0ee5eb66e00d7652676e /doCommit.go | |
| parent | 66802a287f5bb773067df7a455242f93b0e565b0 (diff) | |
common patch submit codev0.22.152
Diffstat (limited to 'doCommit.go')
| -rw-r--r-- | doCommit.go | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/doCommit.go b/doCommit.go index 8ec6d45..3f6d340 100644 --- a/doCommit.go +++ b/doCommit.go @@ -11,7 +11,7 @@ import ( "go.wit.com/log" ) -func doCommit() { +func doCommit() error { if argv.All { found := me.forge.CheckDirty() var newpatches bool @@ -26,7 +26,7 @@ func doCommit() { okExit("") } if newpatches { - patchSubmitAndExit() + return doPatchSubmit() } okExit("") } @@ -69,23 +69,7 @@ func doCommit() { badExit(err) } - patchSubmitAndExit() -} - -func patchSubmitAndExit() { - _, err := me.forge.SubmitDevelPatchSet("forge auto commit") - if err != nil { - // TRY different URL - me.forge.SetForgeURL("https://forge.grid.wit.com/") - log.Info("GOING TO TRY AGAIN", me.forge.GetForgeURL()) - } - - _, err = me.forge.SubmitDevelPatchSet("forge auto commit") - if err != nil { - badExit(err) - } - - okExit("git commit ok. forge done") + return doPatchSubmit() } func doCommitRepo(repo *gitpb.Repo) error { |
