mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-12-14 00:24:05 +08:00
Default repo manifest settings in git config
A default manifest URL can be specified using: git config --global repo-manifest.<id>.url <url> A default manifest server can be specified using: git config --global repo-manifest.<id>.server <url> A default git mirror reference can be specified using: git config --global repo-manifest.<id>.reference <path> This will allow the user to use 'repo init -u <id>' as a shorter alternative to specifying the full URL. Also, manifest server will not have to be specified in the manifest XML and the reference will not have to be specified on the command line. If they are, they will override these default values however. Change-Id: Ifdbc160bd5909ec7df9efb0c5d7136f1d9351754 Signed-off-by: Victor Boivie <victor.boivie@sonyericsson.com>
This commit is contained in:
committed by
Shawn O. Pearce
parent
6a1f737380
commit
ee1c2f5717
@@ -228,7 +228,11 @@ class XmlManifest(object):
|
||||
@property
|
||||
def manifest_server(self):
|
||||
self._Load()
|
||||
return self._manifest_server
|
||||
|
||||
if self._manifest_server:
|
||||
return self._manifest_server
|
||||
|
||||
return self.manifestProject.config.GetString('repo.manifest-server')
|
||||
|
||||
@property
|
||||
def IsMirror(self):
|
||||
|
||||
Reference in New Issue
Block a user