diff options
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/commit-msg | 4 | ||||
-rwxr-xr-x | hooks/pre-auto-gc | 2 |
2 files changed, 3 insertions, 3 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`" |
diff --git a/hooks/pre-auto-gc b/hooks/pre-auto-gc index 360e5e1f..43403022 100755 --- a/hooks/pre-auto-gc +++ b/hooks/pre-auto-gc | |||
@@ -35,7 +35,7 @@ elif grep -q "AC Power \+: 1" /proc/pmu/info 2>/dev/null | |||
35 | then | 35 | then |
36 | exit 0 | 36 | exit 0 |
37 | elif test -x /usr/bin/pmset && /usr/bin/pmset -g batt | | 37 | elif test -x /usr/bin/pmset && /usr/bin/pmset -g batt | |
38 | grep -q "Currently drawing from 'AC Power'" | 38 | grep -q "drawing from 'AC Power'" |
39 | then | 39 | then |
40 | exit 0 | 40 | exit 0 |
41 | elif test -d /sys/bus/acpi/drivers/battery && test 0 = \ | 41 | elif test -d /sys/bus/acpi/drivers/battery && test 0 = \ |