From 8630f39dba4de00345c130e34e98859df169c97a Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Thu, 19 Mar 2009 10:17:12 -0700 Subject: [PATCH] Fix repo re-init in a mirror to not prompt On a mirror client we don't prompt for user.name,user.email as the data is only necessary if you will make new commits. On a re-init we were testing the command line option, not the existing IsMirror property from the manifest configuration file. Signed-off-by: Shawn O. Pearce --- subcmds/init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subcmds/init.py b/subcmds/init.py index 83ed2b62..d86c49ae 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -202,11 +202,11 @@ default.xml will be used. self._SyncManifest(opt) self._LinkManifest(opt.manifest_name) - if os.isatty(0) and os.isatty(1) and not opt.mirror: + if os.isatty(0) and os.isatty(1) and not self.manifest.IsMirror: self._ConfigureUser() self._ConfigureColor() - if opt.mirror: + if self.manifest.IsMirror: type = 'mirror ' else: type = ''