summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.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 /subcmds/sync.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 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index f06c61c5..e5280865 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -234,8 +234,11 @@ later is required to fix a server side protocol bug.
234 help='fetch submodules from server') 234 help='fetch submodules from server')
235 p.add_option('--use-superproject', action='store_true', 235 p.add_option('--use-superproject', action='store_true',
236 help='use the manifest superproject to sync projects') 236 help='use the manifest superproject to sync projects')
237 p.add_option('--tags',
238 action='store_false',
239 help='fetch tags')
237 p.add_option('--no-tags', 240 p.add_option('--no-tags',
238 dest='tags', default=True, action='store_false', 241 dest='tags', action='store_false',
239 help="don't fetch tags") 242 help="don't fetch tags")
240 p.add_option('--optimized-fetch', 243 p.add_option('--optimized-fetch',
241 dest='optimized_fetch', action='store_true', 244 dest='optimized_fetch', action='store_true',