Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'pa/auto-gc-mac-osx' into maint
author
Junio C Hamano
<gitster@pobox.com>
Wed, 15 Jul 2015 18:41:17 +0000
(11:41 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 15 Jul 2015 18:41:17 +0000
(11:41 -0700)
Recent Mac OS X updates breaks the logic to detect that the machine
is on the AC power in the sample pre-auto-gc script.
* pa/auto-gc-mac-osx:
hooks/pre-auto-gc: adjust power checking for newer OS X
contrib/hooks/pre-auto-gc-battery
patch
|
blob
|
history
raw
(from parent 1:
93eba05
)
diff --git
a/contrib/hooks/pre-auto-gc-battery
b/contrib/hooks/pre-auto-gc-battery
index 9d0c2d1990f813da5e3c8ffa7328cce46c32aae7..6a2cdebdb78c5d9d5a507635f748bda7b2be676d 100755
(executable)
--- a/
contrib/hooks/pre-auto-gc-battery
+++ b/
contrib/hooks/pre-auto-gc-battery
@@
-33,7
+33,7
@@
elif grep -q "AC Power \+: 1" /proc/pmu/info 2>/dev/null
then
exit 0
elif test -x /usr/bin/pmset && /usr/bin/pmset -g batt |
- grep -q "
Currently
drawing from 'AC Power'"
+ grep -q "drawing from 'AC Power'"
then
exit 0
fi