diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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(): |