summaryrefslogtreecommitdiff
path: root/morphlib/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/git.py')
-rw-r--r--morphlib/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/git.py b/morphlib/git.py
index a37b6675..9ac9e292 100644
--- a/morphlib/git.py
+++ b/morphlib/git.py
@@ -269,4 +269,4 @@ def is_valid_sha1(ref):
def rev_parse(runcmd, gitdir, ref):
'''Find the sha1 for the given ref'''
- return runcmd(['git', 'rev-parse', ref], cwd=gitdir)[0:40]
+ return runcmd(['git', 'rev-parse', '--verify', ref], cwd=gitdir)[0:40]