summaryrefslogtreecommitdiffstats
path: root/manifest_xml.py
diff options
context:
space:
mode:
authorVictor Boivie <victor.boivie@sonyericsson.com>2011-04-19 10:50:12 +0200
committerShawn O. Pearce <sop@google.com>2011-11-29 14:24:58 -0800
commitee1c2f5717fcc137ab887a4aae8a08d50a539b9a (patch)
tree7a95e6ed8f8b74aac5ba59cbd04e6f24938f2e54 /manifest_xml.py
parent6a1f73738071e299f600017d99f7252d41b96b4b (diff)
downloadgit-repo-ee1c2f5717fcc137ab887a4aae8a08d50a539b9a.tar.gz
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>
Diffstat (limited to 'manifest_xml.py')
-rw-r--r--manifest_xml.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index 9189eec4..c9e5c405 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -228,7 +228,11 @@ class XmlManifest(object):
228 @property 228 @property
229 def manifest_server(self): 229 def manifest_server(self):
230 self._Load() 230 self._Load()
231 return self._manifest_server 231
232 if self._manifest_server:
233 return self._manifest_server
234
235 return self.manifestProject.config.GetString('repo.manifest-server')
232 236
233 @property 237 @property
234 def IsMirror(self): 238 def IsMirror(self):