aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-11-03 15:59:00 +0100
committerGuido Günther <agx@sigxcpu.org>2011-11-03 17:13:08 +0100
commit1418b3556469387cf61b13dbcdffc26d9c5b8115 (patch)
tree7ac78a8b14fc00690215e66a8af71e3047b706e2
parent26151da06a397b259f811f44965018420fb3af98 (diff)
Don't print SHA1 of HEAD commitHEADmaster
-rw-r--r--git/hooks/puppethooks/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/hooks/puppethooks/git.py b/git/hooks/puppethooks/git.py
index 450bbd7..a1c5dc6 100644
--- a/git/hooks/puppethooks/git.py
+++ b/git/hooks/puppethooks/git.py
@@ -48,7 +48,7 @@ def diff_cached(rev):
def verify_rev(rev):
"""Verify ref, return True if it's o.k."""
- return not subprocess.call(['git', 'rev-parse', '-q', '--verify', rev])
+ return not subprocess.call(['git', 'rev-parse', '-q', '--verify', '--no-revs', rev])
def write_tmp_blob(dir, name, sha):