mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Allow init command to set options from environment variables
The manifest URL and mirror location can be specified in environment variables which will be used if the options are not passed on the command line Change-Id: Ida87968b4a91189822c3738f835e2631e10b847e
This commit is contained in:
parent
b148ac9d9a
commit
3f5ea0b182
@ -118,6 +118,10 @@ to update the working directory files.
|
|||||||
dest='config_name', action="store_true", default=False,
|
dest='config_name', action="store_true", default=False,
|
||||||
help='Always prompt for name/e-mail')
|
help='Always prompt for name/e-mail')
|
||||||
|
|
||||||
|
def _RegisteredEnvironmentOptions(self):
|
||||||
|
return {'REPO_MANIFEST_URL': 'manifest_url',
|
||||||
|
'REPO_MIRROR_LOCATION': 'reference'}
|
||||||
|
|
||||||
def _SyncManifest(self, opt):
|
def _SyncManifest(self, opt):
|
||||||
m = self.manifest.manifestProject
|
m = self.manifest.manifestProject
|
||||||
is_new = not m.Exists
|
is_new = not m.Exists
|
||||||
|
Loading…
Reference in New Issue
Block a user