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:
James E. Blair 2016-05-11 11:34:53 -07:00
parent ce7e391fcc
commit 6f68c58224
1 changed files with 2 additions and 0 deletions

View File

@ -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):