diff --git a/project.py b/project.py index 17c75b4d..9c7d9ec1 100644 --- a/project.py +++ b/project.py @@ -438,6 +438,7 @@ class RemoteSpec(object): self.orig_name = orig_name self.fetchUrl = fetchUrl + class Project(object): # These objects can be shared between several working trees. shareable_files = ['description', 'info'] @@ -1927,7 +1928,8 @@ class Project(object): try: # if revision (sha or tag) is not present then following function # throws an error. - self.bare_git.rev_parse('--verify', '%s^0' % self.revisionExpr) + self.bare_git.rev_list('-1', '--missing=allow-any', + '%s^0' % self.revisionExpr, '--') return True except GitError: # There is no such persistent revision. We have to fetch it.