From c58ec4dba102d88fec67e833eb8421202eb4c1ea Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 17 Feb 2020 14:36:08 -0500 Subject: avoid negative variables Trying to use booleans with names like "no_xxx" are hard to follow due to the double negatives. Invert all of them so we only have positive meanings to follow. Change-Id: Ifd37d0368f97034d94aa2cf38db52c723ac0c6ed Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/255493 Tested-by: Mike Frysinger Reviewed-by: David Pursehouse --- subcmds/init.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'subcmds/init.py') diff --git a/subcmds/init.py b/subcmds/init.py index dde97286..3c68c2c3 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -146,10 +146,10 @@ to update the working directory files. 'platform group [auto|all|none|linux|darwin|...]', metavar='PLATFORM') g.add_option('--no-clone-bundle', - dest='no_clone_bundle', action='store_true', + dest='clone_bundle', default=True, action='store_false', help='disable use of /clone.bundle on HTTP/HTTPS') g.add_option('--no-tags', - dest='no_tags', action='store_true', + dest='tags', default=True, action='store_false', help="don't fetch tags in the manifest") # Tool @@ -161,7 +161,7 @@ to update the working directory files. dest='repo_branch', help='repo branch or revision', metavar='REVISION') g.add_option('--no-repo-verify', - dest='no_repo_verify', action='store_true', + dest='repo_verify', default=True, action='store_false', help='do not verify repo source code') # Other @@ -281,9 +281,9 @@ to update the working directory files. m.config.SetString('repo.submodules', 'true') if not m.Sync_NetworkHalf(is_new=is_new, quiet=opt.quiet, - clone_bundle=not opt.no_clone_bundle, + clone_bundle=opt.clone_bundle, current_branch_only=opt.current_branch_only, - no_tags=opt.no_tags, submodules=opt.submodules, + tags=opt.tags, submodules=opt.submodules, clone_filter=opt.clone_filter): r = m.GetRemote(m.remote.name) print('fatal: cannot obtain manifest %s' % r.url, file=sys.stderr) -- cgit v1.2.3-54-g00ecf