From ca441a0e1abaefd9e9c1d5916bd738ff4b30a753 Mon Sep 17 00:00:00 2001 From: Daniel Erat Date: Fri, 1 Jul 2011 19:35:38 +0000 Subject: [PATCH] Make review script download Change-Id hook if missing. Change-Id: I22fd093a6bcad6671700423c27f557aa045a028f --- misc/review | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/misc/review b/misc/review index 831099b68..293e1a3d9 100755 --- a/misc/review +++ b/misc/review @@ -1,3 +1,23 @@ #!/bin/sh +set -e + +TOPLEVEL_DIR=$(readlink -f $(dirname $(readlink -f $0))/..) +HOOK_FILE="$TOPLEVEL_DIR/.git/hooks/commit-msg" +if ! test -e "$HOOK_FILE"; then + cat - <