mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
init: Silence the "rm -r .repo and try again" message if quiet
Bug: b/258532367 Change-Id: I53a23aa0b237b0bb5f7e58464936f8c9b0db1311 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/355915 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Gavin Mak <gavinmak@google.com>
This commit is contained in:
parent
78e82ec78e
commit
c3d61ec252
@ -218,16 +218,14 @@ to update the working directory files.
|
|||||||
if a in ('y', 'yes', 't', 'true', 'on'):
|
if a in ('y', 'yes', 't', 'true', 'on'):
|
||||||
gc.SetString('color.ui', 'auto')
|
gc.SetString('color.ui', 'auto')
|
||||||
|
|
||||||
def _DisplayResult(self, opt):
|
def _DisplayResult(self):
|
||||||
if self.manifest.IsMirror:
|
if self.manifest.IsMirror:
|
||||||
init_type = 'mirror '
|
init_type = 'mirror '
|
||||||
else:
|
else:
|
||||||
init_type = ''
|
init_type = ''
|
||||||
|
|
||||||
if not opt.quiet:
|
print()
|
||||||
print()
|
print('repo %shas been initialized in %s' % (init_type, self.manifest.topdir))
|
||||||
print('repo %shas been initialized in %s' %
|
|
||||||
(init_type, self.manifest.topdir))
|
|
||||||
|
|
||||||
current_dir = os.getcwd()
|
current_dir = os.getcwd()
|
||||||
if current_dir != self.manifest.topdir:
|
if current_dir != self.manifest.topdir:
|
||||||
@ -317,4 +315,5 @@ to update the working directory files.
|
|||||||
self._ConfigureUser(opt)
|
self._ConfigureUser(opt)
|
||||||
self._ConfigureColor()
|
self._ConfigureColor()
|
||||||
|
|
||||||
self._DisplayResult(opt)
|
if not opt.quiet:
|
||||||
|
self._DisplayResult()
|
||||||
|
Loading…
Reference in New Issue
Block a user