experimental/tools/set-change-id-hook
raw| 1 | #! /bin/sh |
| 2 | # Copyright 2019 Google LLC |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | SRC='https://gerrit-review.googlesource.com/tools/hooks/commit-msg' |
| 6 | cd "$(dirname "$0")/.." |
| 7 | HOOK="$(git rev-parse --git-dir)/hooks/commit-msg" |
| 8 | curl -L -o "$HOOK" "$SRC" && chmod +x "$HOOK" |