diff options
author | Mike Frysinger <vapier@google.com> | 2024-04-23 12:17:13 -0400 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-04-23 18:31:51 +0000 |
commit | 5591d99ee239be9116f4879bfea4a538b0b89e9c (patch) | |
tree | 282752df0312e75204026badcc72acc9901e3222 /hooks/commit-msg | |
parent | 9d865454aaf0ea41927332768e55b5b2f56e2533 (diff) | |
download | git-repo-5591d99ee239be9116f4879bfea4a538b0b89e9c.tar.gz |
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>
Diffstat (limited to 'hooks/commit-msg')
-rwxr-xr-x | hooks/commit-msg | 8 |
1 files changed, 5 insertions, 3 deletions
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 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # From Gerrit Code Review 3.10.0 d5403dbf335ba7d48977fc95170c3f7027c34659 | 2 | # DO NOT EDIT THIS FILE |
3 | # All updates should be sent upstream: https://gerrit.googlesource.com/gerrit/ | ||
4 | # This is synced from commit: 62f5bbea67f6dafa6e22a601a0c298214c510caf | ||
5 | # DO NOT EDIT THIS FILE | ||
3 | # | 6 | # |
4 | # Part of Gerrit Code Review (https://www.gerritcodereview.com/) | 7 | # Part of Gerrit Code Review (https://www.gerritcodereview.com/) |
5 | # | 8 | # |
@@ -31,8 +34,7 @@ if test ! -f "$1" ; then | |||
31 | fi | 34 | fi |
32 | 35 | ||
33 | # Do not create a change id if requested | 36 | # Do not create a change id if requested |
34 | create_setting=$(git config --get gerrit.createChangeId) | 37 | case "$(git config --get gerrit.createChangeId)" in |
35 | case "$create_setting" in | ||
36 | false) | 38 | false) |
37 | exit 0 | 39 | exit 0 |
38 | ;; | 40 | ;; |