summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-11-05 15:10:33 -0400
committerMike Frysinger <vapier@google.com>2021-11-05 20:13:02 +0000
commit2273f46cb36893d20ab77d4dde1461d670d88e2c (patch)
tree2e7dd4cc70754b179b4280629e32132878e8ca8d /subcmds/sync.py
parent7b9b251a5e86eed8d346ffe84dc22b8f1cb1a05b (diff)
downloadgit-repo-2273f46cb36893d20ab77d4dde1461d670d88e2c.tar.gz
sync: fix --tags option
This has been broken since it was added where --tags was actually the same as --no-tags. Oddly, it was copied from init where the logic is correct. Bug: https://crbug.com/gerrit/12401 Change-Id: I15b89da1a655176a11bebc22573b25c728055328 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/322955 Reviewed-by: Andrew Lamb <andrewlamb@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index c2303232..d4e302ac 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -238,12 +238,11 @@ later is required to fix a server side protocol bug.
238 p.add_option('--no-use-superproject', action='store_false', 238 p.add_option('--no-use-superproject', action='store_false',
239 dest='use_superproject', 239 dest='use_superproject',
240 help='disable use of manifest superprojects') 240 help='disable use of manifest superprojects')
241 p.add_option('--tags', 241 p.add_option('--tags', action='store_true',
242 action='store_false',
243 help='fetch tags') 242 help='fetch tags')
244 p.add_option('--no-tags', 243 p.add_option('--no-tags',
245 dest='tags', action='store_false', 244 dest='tags', action='store_false',
246 help="don't fetch tags") 245 help="don't fetch tags (default)")
247 p.add_option('--optimized-fetch', 246 p.add_option('--optimized-fetch',
248 dest='optimized_fetch', action='store_true', 247 dest='optimized_fetch', action='store_true',
249 help='only fetch projects fixed to sha1 if revision does not exist locally') 248 help='only fetch projects fixed to sha1 if revision does not exist locally')