From 43c6af4a8b5d1f847435ef7f10496f61b8d6bb0a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 21 Aug 2025 14:28:23 -0500 Subject: [PATCH] common patch submit function --- doCommit.go | 13 +++++++------ 1 file 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 {