]> git.kaiwu.me - haproxy.git/commit
DEV: patchbot: update: report git commit failures in the save response
authorWilly Tarreau <w@1wt.eu>
Mon, 6 Jul 2026 21:13:10 +0000 (23:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Jul 2026 12:45:32 +0000 (14:45 +0200)
commit96f415006ee03656881d8b67746982d194511f02
tree0660c2bfafe63a1beb579f949d859ad7a2841d3e
parentbff33b4e32cab654dca225210e8890c2101c56dc
DEV: patchbot: update: report git commit failures in the save response

When the git commit fails after a save (typically a missing committer
identity in the storage repository, or an ownership/permission issue),
the failure was only logged to stderr, which lands in the web server's
error log at best: the file kept being updated but the history silently
stopped being recorded. Report it as a "warning: git commit failed ..."
line appended to the response, where the page can show it to the user,
on top of the stderr log. Also stop treating a no-op as a failure:
re-pushing identical content stages nothing, so the commit is now
simply skipped when "git diff --cached --quiet" reports no staged
change, instead of letting "git commit" fail on an empty commit.
dev/patchbot/cgi/update.awk