diff options
-rwxr-xr-x | hooks/commit-msg | 4 |
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`" |