diff options
Diffstat (limited to 'project.py')
-rwxr-xr-x | project.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2252,7 +2252,10 @@ class Project(object): | |||
2252 | spec.append('tag') | 2252 | spec.append('tag') |
2253 | spec.append(tag_name) | 2253 | spec.append(tag_name) |
2254 | 2254 | ||
2255 | branch = self.revisionExpr | 2255 | if self.manifest.IsMirror and not current_branch_only: |
2256 | branch = None | ||
2257 | else: | ||
2258 | branch = self.revisionExpr | ||
2256 | if (not self.manifest.IsMirror and is_sha1 and depth | 2259 | if (not self.manifest.IsMirror and is_sha1 and depth |
2257 | and git_require((1, 8, 3))): | 2260 | and git_require((1, 8, 3))): |
2258 | # Shallow checkout of a specific commit, fetch from that commit and not | 2261 | # Shallow checkout of a specific commit, fetch from that commit and not |