Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pre-commit.sample: don't print incidental SHA1
[gitweb.git]
/
templates
/
hooks--pre-commit.sample
diff --git
a/templates/hooks--pre-commit.sample
b/templates/hooks--pre-commit.sample
index 0e49279c7f7b805c78f1bc4760a0d1c70a84a0d9..0ba62076fb4a381e588eba90ed639dd560860fd3 100755
(executable)
--- a/
templates/hooks--pre-commit.sample
+++ b/
templates/hooks--pre-commit.sample
@@
-7,7
+7,7
@@
#
# To enable this hook, rename this file to "pre-commit".
-if git-rev-parse --verify HEAD
2>/dev/null
+if git-rev-parse --verify HEAD
>/dev/null 2>&1
then
against=HEAD
else