summaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2013-08-14 08:41:58 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-21 09:42:07 +0200
commit941dd92e5b16140cc2e6f766130887ad80a160e4 (patch)
tree887f00514f9a77c47584e7df70520201b058a92c /init-repository
parent824cfe84a86995e356e949542b8189b3f67fd1c0 (diff)
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>
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository11
1 files changed, 11 insertions, 0 deletions
diff --git a/init-repository b/init-repository
index 45de179a..9995d877 100755
--- a/init-repository
+++ b/init-repository
@@ -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