summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rwxr-xr-xproject.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/project.py b/project.py
index 24fbf4f0..a0cb5e97 100755
--- a/project.py
+++ b/project.py
@@ -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