From 941dd92e5b16140cc2e6f766130887ad80a160e4 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Wed, 14 Aug 2013 08:41:58 +0200 Subject: Add --oslo option to init-repository Oslo devs can use a local git mirror. Change-Id: Id6f919ff65ddf0c0b5839316014f51d2293008fd Reviewed-by: Sergio Ahumada Reviewed-by: Alex Blasche Reviewed-by: Joerg Bornemann --- init-repository | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'init-repository') diff --git a/init-repository b/init-repository index 45de179a..9995d877 100755 --- a/init-repository +++ b/init-repository @@ -119,6 +119,11 @@ B Switch to internal URLs and make use of the Berlin git mirrors. (Implies `--mirror'). +=item --oslo + +Switch to internal URLs and make use of the Oslo git mirrors. +(Implies `--mirror'). + =item --http @@ -261,6 +266,9 @@ my $GERRIT_SSH_BASE my $BER_MIRROR_URL_BASE = 'git://hegel/'; +my $OSLO_MIRROR_URL_BASE + = 'git://qilin/'; + sub new { my ($class, @arguments) = @_; @@ -323,6 +331,9 @@ sub parse_arguments 'berlin' => sub { $self->{'mirror-url'} = $BER_MIRROR_URL_BASE; }, + 'oslo' => sub { + $self->{'mirror-url'} = $OSLO_MIRROR_URL_BASE; + }, ) || pod2usage(2); # Replace any double trailing slashes from end of mirror -- cgit v1.2.3