Преглед изворни кода

Revert "Update Gerrit commit hook"

This reverts commit 7ec738a776.
pull/4/head
Greg Holmes пре 9 година
родитељ
комит
7030d1c033
1 измењених фајлова са 2 додато и 9 уклоњено
  1. 2
    9
      etc/gerrit/commit-msg

+ 2
- 9
etc/gerrit/commit-msg Прегледај датотеку

@@ -1,5 +1,5 @@
1 1
 #!/bin/sh
2
-# From Gerrit Code Review 2.8.1
2
+# From Gerrit Code Review 2.4.2
3 3
 #
4 4
 # Part of Gerrit Code Review (http://code.google.com/p/gerrit/)
5 5
 #
@@ -18,8 +18,6 @@
18 18
 # limitations under the License.
19 19
 #
20 20
 
21
-unset GREP_OPTIONS
22
-
23 21
 CHANGE_ID_AFTER="Bug|Issue"
24 22
 MSG="$1"
25 23
 
@@ -39,11 +37,6 @@ add_ChangeId() {
39 37
 		return
40 38
 	fi
41 39
 
42
-	if test "false" = "`git config --bool --get gerrit.createChangeId`"
43
-	then
44
-		return
45
-	fi
46
-
47 40
 	# Does Change-Id: already exist? if so, exit (no change).
48 41
 	if grep -i '^Change-Id:' "$MSG" >/dev/null
49 42
 	then
@@ -159,7 +152,7 @@ add_ChangeId() {
159 152
 		if (unprinted) {
160 153
 			print "Change-Id: I'"$id"'"
161 154
 		}
162
-	}' "$MSG" > "$T" && mv "$T" "$MSG" || rm -f "$T"
155
+	}' "$MSG" > $T && mv $T "$MSG" || rm -f $T
163 156
 }
164 157
 _gen_ChangeIdInput() {
165 158
 	echo "tree `git write-tree`"

Loading…
Откажи
Сачувај