summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/project.py b/project.py
index 57826a17..4b85bb98 100644
--- a/project.py
+++ b/project.py
@@ -2044,8 +2044,11 @@ class Project(object):
2044 2044
2045 if current_branch_only: 2045 if current_branch_only:
2046 if self.revisionExpr.startswith(R_TAGS): 2046 if self.revisionExpr.startswith(R_TAGS):
2047 # this is a tag and its sha1 value should never change 2047 # This is a tag and its commit id should never change.
2048 tag_name = self.revisionExpr[len(R_TAGS):] 2048 tag_name = self.revisionExpr[len(R_TAGS):]
2049 elif self.upstream and self.upstream.startswith(R_TAGS):
2050 # This is a tag and its commit id should never change.
2051 tag_name = self.upstream[len(R_TAGS):]
2049 2052
2050 if is_sha1 or tag_name is not None: 2053 if is_sha1 or tag_name is not None:
2051 if self._CheckForImmutableRevision(): 2054 if self._CheckForImmutableRevision():