summaryrefslogtreecommitdiffstats
path: root/repo
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 /repo
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 'repo')
-rwxr-xr-xrepo4
1 files changed, 2 insertions, 2 deletions
diff --git a/repo b/repo
index 0e779833..1c71f072 100755
--- a/repo
+++ b/repo
@@ -28,7 +28,7 @@ if __name__ == '__main__':
28del magic 28del magic
29 29
30# increment this whenever we make important changes to this script 30# increment this whenever we make important changes to this script
31VERSION = (1, 13) 31VERSION = (1, 14)
32 32
33# increment this if the MAINTAINER_KEYS block is modified 33# increment this if the MAINTAINER_KEYS block is modified
34KEYRING_VERSION = (1,0) 34KEYRING_VERSION = (1,0)
@@ -149,7 +149,7 @@ def _Init(args):
149 """Installs repo by cloning it over the network. 149 """Installs repo by cloning it over the network.
150 """ 150 """
151 opt, args = init_optparse.parse_args(args) 151 opt, args = init_optparse.parse_args(args)
152 if args or not opt.manifest_url: 152 if args:
153 init_optparse.print_usage() 153 init_optparse.print_usage()
154 sys.exit(1) 154 sys.exit(1)
155 155