Add --oslo option to init-repository

Oslo devs can use a local git mirror.

Change-Id: Id6f919ff65ddf0c0b5839316014f51d2293008fd
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
Alex Blasche
2013-08-14 08:41:58 +02:00
committed by The Qt Project
parent 824cfe84a8
commit 941dd92e5b

View File

@@ -119,6 +119,11 @@ B<Repository options:>
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