diff options
| author | Jeff Carr <[email protected]> | 2025-08-21 14:28:23 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-21 14:28:23 -0500 |
| commit | 43c6af4a8b5d1f847435ef7f10496f61b8d6bb0a (patch) | |
| tree | a318a468e591bf106672cfb87d20a50a58a0f6de | |
| parent | e928cee03877e8a3e498709bac72478a3f7f1017 (diff) | |
common patch submit function
| -rw-r--r-- | doCommit.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doCommit.go b/doCommit.go index ada28a2..742368c 100644 --- a/doCommit.go +++ b/doCommit.go @@ -27,11 +27,7 @@ func doCommit() { okExit("") } if newpatches { - // if there are enw patches, autocommit them - _, err := me.forge.SubmitDevelPatchSet("forge auto commit") - if err != nil { - badExit(err) - } + patchSubmitAndExit() } okExit("") } @@ -74,6 +70,10 @@ func doCommit() { badExit(err) } + patchSubmitAndExit() +} + +func patchSubmitAndExit() { _, err := me.forge.SubmitDevelPatchSet("forge auto commit") if err != nil { // TRY different URL @@ -85,7 +85,8 @@ func doCommit() { if err != nil { badExit(err) } - log.Info("git commit ok. forge done") + + okExit("git commit ok. forge done") } func doCommitRepo(repo *gitpb.Repo) error { |
