summaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@nokia.com>2011-08-26 13:41:00 +0200
committerQt by Nokia <qt-info@nokia.com>2011-08-26 13:52:39 +0200
commitc011de18624f926a3d64c6b28be48a0e96bb2f25 (patch)
treebb1bc0f8ae763dcf31a77bbc6eedf47308544676 /init-repository
parentf7e435713bffafdfce6766023b2b078a0afc3410 (diff)
Not add remote for external developers
Gerrit is still for internal at the time. Task-number: QTBUG-21139 Change-Id: Idc282e4db06246dc173f745e11234647d302edd4 Reviewed-by: Sergio Ahumada Reviewed-on: http://codereview.qt.nokia.com/3669 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Liang Qi <liang.qi@nokia.com>
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository7
1 files changed, 5 insertions, 2 deletions
diff --git a/init-repository b/init-repository
index 4192929c..049af5f3 100755
--- a/init-repository
+++ b/init-repository
@@ -569,6 +569,7 @@ sub git_clone_one_submodule
my $mirror_webkit_url = $self->{ 'mirror-webkit-url' };
my $mirror_v8_url = $self->{ 'mirror-v8-url' };
my $protocol = $self->{ 'protocol' };
+ my $nokia_developer = $self->{ 'nokia-developer' };
# `--reference FOO' args for the clone, if any.
my @reference_args;
@@ -620,7 +621,7 @@ sub git_clone_one_submodule
$self->exe('git', 'remote', 'add', 'mirror', $mirror);
}
- $self->git_add_remotes($submodule);
+ $self->git_add_remotes($submodule) if $nokia_developer;
if ($self->{'detach-alternates'}) {
$self->exe('git', 'repack', '-a');
@@ -673,6 +674,8 @@ sub run
{
my ($self) = @_;
+ my $nokia_developer = $self->{ 'nokia-developer' };
+
$self->check_if_already_initialized;
$self->git_submodule_init;
@@ -690,7 +693,7 @@ sub run
$self->git_clone_all_submodules;
}
- $self->git_add_remotes('qt5');
+ $self->git_add_remotes('qt5') if $nokia_developer;
return;
}