diff options
-rwxr-xr-x | project.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2322,7 +2322,10 @@ class Project(object): | |||
2322 | spec.append('tag') | 2322 | spec.append('tag') |
2323 | spec.append(tag_name) | 2323 | spec.append(tag_name) |
2324 | 2324 | ||
2325 | branch = self.revisionExpr | 2325 | if self.manifest.IsMirror and not current_branch_only: |
2326 | branch = None | ||
2327 | else: | ||
2328 | branch = self.revisionExpr | ||
2326 | if (not self.manifest.IsMirror and is_sha1 and depth | 2329 | if (not self.manifest.IsMirror and is_sha1 and depth |
2327 | and git_require((1, 8, 3))): | 2330 | and git_require((1, 8, 3))): |
2328 | # Shallow checkout of a specific commit, fetch from that commit and not | 2331 | # Shallow checkout of a specific commit, fetch from that commit and not |