summaryrefslogtreecommitdiff
path: root/morphlib/git.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-12-13 17:43:08 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-12-13 17:43:08 +0000
commit35f9111d9497160c44a5e4fa2b8a1964e68d0fd5 (patch)
treef908f10baf4ef22a2fe1b85411399ebc07848dbe /morphlib/git.py
parent2723ce3a8fa56ddec0c003e23bc037fade2ceb23 (diff)
parentbec9ecbbb7ab988488c77ea1fe995164ec0c073f (diff)
downloadmorph-35f9111d9497160c44a5e4fa2b8a1964e68d0fd5.tar.gz
Merge remote-tracking branch 'remotes/origin/samthursfield/ambiguous-refs' into baserock/merge-queue
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]