summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/project.py b/project.py
index a8503a3a..07685dae 100644
--- a/project.py
+++ b/project.py
@@ -1145,8 +1145,7 @@ class Project:
1145 # This stops git from pushing all reachable annotated tags when 1145 # This stops git from pushing all reachable annotated tags when
1146 # push.followTags is configured. Gerrit does not accept any tags 1146 # push.followTags is configured. Gerrit does not accept any tags
1147 # pushed to a CL. 1147 # pushed to a CL.
1148 if git_require((1, 8, 3)): 1148 cmd.append("--no-follow-tags")
1149 cmd.append("--no-follow-tags")
1150 1149
1151 for push_option in push_options or []: 1150 for push_option in push_options or []:
1152 cmd.append("-o") 1151 cmd.append("-o")
@@ -2565,12 +2564,7 @@ class Project:
2565 branch = None 2564 branch = None
2566 else: 2565 else:
2567 branch = self.revisionExpr 2566 branch = self.revisionExpr
2568 if ( 2567 if not self.manifest.IsMirror and is_sha1 and depth:
2569 not self.manifest.IsMirror
2570 and is_sha1
2571 and depth
2572 and git_require((1, 8, 3))
2573 ):
2574 # Shallow checkout of a specific commit, fetch from that commit and 2568 # Shallow checkout of a specific commit, fetch from that commit and
2575 # not the heads only as the commit might be deeper in the history. 2569 # not the heads only as the commit might be deeper in the history.
2576 spec.append(branch) 2570 spec.append(branch)