diff --git a/subcmds/init.py b/subcmds/init.py index 26cac62f..813fa590 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -218,16 +218,14 @@ to update the working directory files. if a in ('y', 'yes', 't', 'true', 'on'): gc.SetString('color.ui', 'auto') - def _DisplayResult(self, opt): + def _DisplayResult(self): if self.manifest.IsMirror: init_type = 'mirror ' else: init_type = '' - if not opt.quiet: - print() - print('repo %shas been initialized in %s' % - (init_type, self.manifest.topdir)) + print() + print('repo %shas been initialized in %s' % (init_type, self.manifest.topdir)) current_dir = os.getcwd() if current_dir != self.manifest.topdir: @@ -317,4 +315,5 @@ to update the working directory files. self._ConfigureUser(opt) self._ConfigureColor() - self._DisplayResult(opt) + if not opt.quiet: + self._DisplayResult()