summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-05-03 01:21:35 -0400
committerMike Frysinger <vapier@google.com>2021-05-04 11:32:17 +0000
commitd68ed63328fedaf227e61390267d06637edbafae (patch)
tree3f6b5c2a33da47a99e31e6407e73c4b3fe64c7c3 /project.py
parent7356114d908471a54b5a7e725f36d9111c6fab5b (diff)
downloadgit-repo-d68ed63328fedaf227e61390267d06637edbafae.tar.gz
init/sync: add --no-tags to match --tags
While this provides a way to undo earlier command line options (e.g. `repo sync --tags --no-tags`) which can be helpful for scripting & automation, this more importantly allows the user to override the manifest settings for syncing tags from a project. Bug: https://crbug.com/gerrit/12401 Change-Id: Id4c36cd82e6ca7cb073b5d63a09f6c7ccdebba83 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/304904 Reviewed-by: Raman Tenneti <rtenneti@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'project.py')
-rw-r--r--project.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/project.py b/project.py
index ab28f2c3..99419f61 100644
--- a/project.py
+++ b/project.py
@@ -1044,7 +1044,7 @@ class Project(object):
1044 current_branch_only=None, 1044 current_branch_only=None,
1045 force_sync=False, 1045 force_sync=False,
1046 clone_bundle=True, 1046 clone_bundle=True,
1047 tags=True, 1047 tags=None,
1048 archive=False, 1048 archive=False,
1049 optimized_fetch=False, 1049 optimized_fetch=False,
1050 retry_fetches=0, 1050 retry_fetches=0,
@@ -1125,8 +1125,8 @@ class Project(object):
1125 elif self.manifest.default.sync_c: 1125 elif self.manifest.default.sync_c:
1126 current_branch_only = True 1126 current_branch_only = True
1127 1127
1128 if not self.sync_tags: 1128 if tags is None:
1129 tags = False 1129 tags = self.sync_tags
1130 1130
1131 if self.clone_depth: 1131 if self.clone_depth:
1132 depth = self.clone_depth 1132 depth = self.clone_depth