From ee1c2f5717fcc137ab887a4aae8a08d50a539b9a Mon Sep 17 00:00:00 2001 From: Victor Boivie Date: Tue, 19 Apr 2011 10:50:12 +0200 Subject: Default repo manifest settings in git config A default manifest URL can be specified using: git config --global repo-manifest..url A default manifest server can be specified using: git config --global repo-manifest..server A default git mirror reference can be specified using: git config --global repo-manifest..reference This will allow the user to use 'repo init -u ' 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 --- manifest_xml.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'manifest_xml.py') 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): @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): -- cgit v1.2.3-54-g00ecf