release: update-hooks: helper for automatically syncing hooks

These hooks are maintained in other projects.  Add a script to automate
their import so people don't send us changes directly, and we can try to
steer them to the correct place.

Change-Id: Iac0bdb3aae84dda43a1600e73107555b513ce82b
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/422177
Commit-Queue: Mike Frysinger <vapier@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
This commit is contained in:
Mike Frysinger
2024-04-23 12:17:13 -04:00
committed by LUCI
parent 9d865454aa
commit 5591d99ee2
4 changed files with 166 additions and 33 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh
# From Gerrit Code Review 3.10.0 d5403dbf335ba7d48977fc95170c3f7027c34659
# DO NOT EDIT THIS FILE
# All updates should be sent upstream: https://gerrit.googlesource.com/gerrit/
# This is synced from commit: 62f5bbea67f6dafa6e22a601a0c298214c510caf
# DO NOT EDIT THIS FILE
#
# Part of Gerrit Code Review (https://www.gerritcodereview.com/)
#
@ -31,8 +34,7 @@ if test ! -f "$1" ; then
fi
# Do not create a change id if requested
create_setting=$(git config --get gerrit.createChangeId)
case "$create_setting" in
case "$(git config --get gerrit.createChangeId)" in
false)
exit 0
;;