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 <sop@google.com>
This commit is contained in:
Shawn O. Pearce 2009-03-19 10:17:12 -07:00
parent df01883f9b
commit 8630f39dba

View File

@ -202,11 +202,11 @@ default.xml will be used.
self._SyncManifest(opt) self._SyncManifest(opt)
self._LinkManifest(opt.manifest_name) 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._ConfigureUser()
self._ConfigureColor() self._ConfigureColor()
if opt.mirror: if self.manifest.IsMirror:
type = 'mirror ' type = 'mirror '
else: else:
type = '' type = ''