Handle ValueError on missing git commit
Apparently gitpython might now throw a ValueError on a missing commit. Change-Id: I0e01fe569281afa4675e75c749b35de5afe47457
This commit is contained in:
parent
ce7e391fcc
commit
6f68c58224
@ -265,6 +265,8 @@ class Repo(object):
|
||||
repo.commit(sha)
|
||||
except gitdb.exc.BadObject:
|
||||
return False
|
||||
except ValueError:
|
||||
return False
|
||||
return True
|
||||
|
||||
def fetch(self, url, refspec):
|
||||
|
Loading…
x
Reference in New Issue
Block a user