mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
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
@ -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…
Reference in New Issue
Block a user