From 61df418c599a0359b33b8a65a12660023fc37a2a Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Fri, 29 Nov 2013 19:17:23 +0900 Subject: [PATCH] Update the commit-msg hook to the version from Gerrit 2.6 Change-Id: Iaf21ba8d2ceea58973dbc56f0b4ece54500cd997 --- hooks/commit-msg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/commit-msg b/hooks/commit-msg index b37dfaa4..5ca2b112 100755 --- a/hooks/commit-msg +++ b/hooks/commit-msg @@ -1,5 +1,5 @@ #!/bin/sh -# From Gerrit Code Review 2.5.2 +# From Gerrit Code Review 2.6 # # Part of Gerrit Code Review (http://code.google.com/p/gerrit/) # @@ -154,7 +154,7 @@ add_ChangeId() { if (unprinted) { print "Change-Id: I'"$id"'" } - }' "$MSG" > $T && mv $T "$MSG" || rm -f $T + }' "$MSG" > "$T" && mv "$T" "$MSG" || rm -f "$T" } _gen_ChangeIdInput() { echo "tree `git write-tree`"