diff options
Diffstat (limited to 'subcmds')
-rw-r--r-- | subcmds/init.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index af5bc297..be73cecd 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -87,9 +87,12 @@ to update the working directory files. | |||
87 | def _Options(self, p, gitc_init=False): | 87 | def _Options(self, p, gitc_init=False): |
88 | # Logging | 88 | # Logging |
89 | g = p.add_option_group('Logging options') | 89 | g = p.add_option_group('Logging options') |
90 | g.add_option('-v', '--verbose', | ||
91 | dest='output_mode', action='store_true', | ||
92 | help='show all output') | ||
90 | g.add_option('-q', '--quiet', | 93 | g.add_option('-q', '--quiet', |
91 | dest="quiet", action="store_true", default=False, | 94 | dest='output_mode', action='store_false', |
92 | help="be quiet") | 95 | help='only show errors') |
93 | 96 | ||
94 | # Manifest | 97 | # Manifest |
95 | g = p.add_option_group('Manifest options') | 98 | g = p.add_option_group('Manifest options') |
@@ -300,7 +303,7 @@ to update the working directory files. | |||
300 | if opt.submodules: | 303 | if opt.submodules: |
301 | m.config.SetString('repo.submodules', 'true') | 304 | m.config.SetString('repo.submodules', 'true') |
302 | 305 | ||
303 | if not m.Sync_NetworkHalf(is_new=is_new, quiet=opt.quiet, | 306 | if not m.Sync_NetworkHalf(is_new=is_new, quiet=opt.quiet, verbose=opt.verbose, |
304 | clone_bundle=opt.clone_bundle, | 307 | clone_bundle=opt.clone_bundle, |
305 | current_branch_only=opt.current_branch_only, | 308 | current_branch_only=opt.current_branch_only, |
306 | tags=opt.tags, submodules=opt.submodules, | 309 | tags=opt.tags, submodules=opt.submodules, |
@@ -483,6 +486,9 @@ to update the working directory files. | |||
483 | % ('.'.join(str(x) for x in MIN_GIT_VERSION_SOFT),), | 486 | % ('.'.join(str(x) for x in MIN_GIT_VERSION_SOFT),), |
484 | file=sys.stderr) | 487 | file=sys.stderr) |
485 | 488 | ||
489 | opt.quiet = opt.output_mode is False | ||
490 | opt.verbose = opt.output_mode is True | ||
491 | |||
486 | if opt.worktree: | 492 | if opt.worktree: |
487 | # Older versions of git supported worktree, but had dangerous gc bugs. | 493 | # Older versions of git supported worktree, but had dangerous gc bugs. |
488 | git_require((2, 15, 0), fail=True, msg='git gc worktree corruption') | 494 | git_require((2, 15, 0), fail=True, msg='git gc worktree corruption') |