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. 5SRC='https://gerrit-review.googlesource.com/tools/hooks/commit-msg' 6cd "$(dirname "$0")/.." 7HOOK="$(git rev-parse --git-dir)/hooks/commit-msg" 8curl -L -o "$HOOK" "$SRC" && chmod +x "$HOOK" 9