git rev_parse with --verify
authorTimo Savola <tsavola@movial.fi>
Sun, 6 Apr 2008 07:19:20 +0000 (10:19 +0300)
committerTimo Savola <tsavola@movial.fi>
Sun, 6 Apr 2008 07:19:20 +0000 (10:19 +0300)
matrix/git.py

index c3e8fb3..f973b5a 100644 (file)
@@ -148,7 +148,7 @@ def checkout(name, branch=None):
        call(cmd, workdir=name, fail=True)
 
 def rev_parse(name, arg):
-       lines = call_output(['rev-parse', arg], workdir=name)
+       lines = call_output(['rev-parse', '--verify', arg], workdir=name)
        if lines:
                return lines[0].strip()
        else: