git hooks: update commit-msg to Gerrit 2.16.15

Desktop / LibreOffice - Jan-Marek Glogowski [extern.cib.de] - 1 February 2020 03:14 EST

This mainly replaces the whole AWK code with the git helper "interpret-trailers", which was added in git v2.2 end of 2014.

It also moves the argument checks from the original Gerrit hook to the front of our tests to verify the script arguments.

Change-Id: I38c831bf7c9d399419a598d6966e48166d31ea6f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87369

c5eb63edde14 git hooks: update commit-msg to Gerrit 2.16.15
.git-hooks/commit-msg | 204 ++++++++++----------------------------------------
1 file changed, 39 insertions(+), 165 deletions(-)

Upstream: cgit.freedesktop.org


  • Share