summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--project.py4
1 files changed, 3 insertions, 1 deletions
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):
438 self.orig_name = orig_name 438 self.orig_name = orig_name
439 self.fetchUrl = fetchUrl 439 self.fetchUrl = fetchUrl
440 440
441
441class Project(object): 442class Project(object):
442 # These objects can be shared between several working trees. 443 # These objects can be shared between several working trees.
443 shareable_files = ['description', 'info'] 444 shareable_files = ['description', 'info']
@@ -1927,7 +1928,8 @@ class Project(object):
1927 try: 1928 try:
1928 # if revision (sha or tag) is not present then following function 1929 # if revision (sha or tag) is not present then following function
1929 # throws an error. 1930 # throws an error.
1930 self.bare_git.rev_parse('--verify', '%s^0' % self.revisionExpr) 1931 self.bare_git.rev_list('-1', '--missing=allow-any',
1932 '%s^0' % self.revisionExpr, '--')
1931 return True 1933 return True
1932 except GitError: 1934 except GitError:
1933 # There is no such persistent revision. We have to fetch it. 1935 # There is no such persistent revision. We have to fetch it.