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:
parent
df01883f9b
commit
8630f39dba
1 changed files with 2 additions and 2 deletions
|
@ -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 = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue