summaryrefslogtreecommitdiffstats
path: root/repo
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 /repo
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 'repo')
-rwxr-xr-xrepo5
1 files changed, 4 insertions, 1 deletions
diff --git a/repo b/repo
index 4068b127..f17c8a6f 100755
--- a/repo
+++ b/repo
@@ -327,8 +327,11 @@ def InitParser(parser, gitc_init=False):
327 group.add_option('--no-current-branch', 327 group.add_option('--no-current-branch',
328 dest='current_branch_only', action='store_false', 328 dest='current_branch_only', action='store_false',
329 help='fetch all manifest branches from server') 329 help='fetch all manifest branches from server')
330 group.add_option('--tags',
331 action='store_true',
332 help='fetch tags in the manifest')
330 group.add_option('--no-tags', 333 group.add_option('--no-tags',
331 dest='tags', default=True, action='store_false', 334 dest='tags', action='store_false',
332 help="don't fetch tags in the manifest") 335 help="don't fetch tags in the manifest")
333 336
334 # These are fundamentally different ways of structuring the checkout. 337 # These are fundamentally different ways of structuring the checkout.