summaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-08-15 21:38:54 +0200
committerOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-09-23 20:29:06 +0200
commit934651b7669b7665c0ddb76ad38441289b303719 (patch)
treef4fb77859c4931d1c8575171b9c684472409f88b /init-repository
parent836f00a76e4f8c623f99bcb29cf1b3f0d101cc08 (diff)
don't unnecessarily initialize unwanted submodules
it wastes time and causes output noise. Change-Id: Ifee01150293431b3c528f30a46280bd142e30b22 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository7
1 files changed, 3 insertions, 4 deletions
diff --git a/init-repository b/init-repository
index c2b2916d..17b2c07a 100755
--- a/init-repository
+++ b/init-repository
@@ -296,11 +296,10 @@ sub check_if_already_initialized
sub git_submodule_init
{
- my ($self) = @_;
+ my ($self, @init_args) = @_;
- my @init_args;
if ($self->{quiet}) {
- push @init_args, '--quiet';
+ unshift @init_args, '--quiet';
}
$self->exe('git', 'submodule', 'init', @init_args);
@@ -353,7 +352,7 @@ sub git_clone_all_submodules
my @modules = sort keys %include;
- $self->git_submodule_init;
+ $self->git_submodule_init(@modules);
# manually clone each repo here, so we can easily use reference repos, mirrors etc
my @configresult = qx(git config -l);