From 5591d99ee239be9116f4879bfea4a538b0b89e9c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 23 Apr 2024 12:17:13 -0400 Subject: 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 Tested-by: Mike Frysinger Reviewed-by: Josip Sokcevic --- hooks/commit-msg | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'hooks/commit-msg') diff --git a/hooks/commit-msg b/hooks/commit-msg index 112df63f..a6721d40 100755 --- a/hooks/commit-msg +++ b/hooks/commit-msg @@ -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 ;; -- cgit v1.2.3-54-g00ecf