diff options
| author | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-11-29 19:17:23 +0900 |
|---|---|---|
| committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-11-29 19:17:23 +0900 |
| commit | 61df418c599a0359b33b8a65a12660023fc37a2a (patch) | |
| tree | 854d4d6d52d50ed765c11eca281e74b5b1a8d3b8 /hooks | |
| parent | 4534120628a8e3a7f82063757bbcb02107dd14d8 (diff) | |
| download | git-repo-61df418c599a0359b33b8a65a12660023fc37a2a.tar.gz | |
Update the commit-msg hook to the version from Gerrit 2.6
Change-Id: Iaf21ba8d2ceea58973dbc56f0b4ece54500cd997
Diffstat (limited to 'hooks')
| -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`" |
