summaryrefslogtreecommitdiffstats
path: root/hooks/commit-msg
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/commit-msg')
-rwxr-xr-xhooks/commit-msg4
1 files 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 @@
1#!/bin/sh 1#!/bin/sh
2# From Gerrit Code Review 2.5.2 2# From Gerrit Code Review 2.6
3# 3#
4# Part of Gerrit Code Review (http://code.google.com/p/gerrit/) 4# Part of Gerrit Code Review (http://code.google.com/p/gerrit/)
5# 5#
@@ -154,7 +154,7 @@ add_ChangeId() {
154 if (unprinted) { 154 if (unprinted) {
155 print "Change-Id: I'"$id"'" 155 print "Change-Id: I'"$id"'"
156 } 156 }
157 }' "$MSG" > $T && mv $T "$MSG" || rm -f $T 157 }' "$MSG" > "$T" && mv "$T" "$MSG" || rm -f "$T"
158} 158}
159_gen_ChangeIdInput() { 159_gen_ChangeIdInput() {
160 echo "tree `git write-tree`" 160 echo "tree `git write-tree`"