aboutsummaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository12
1 files changed, 7 insertions, 5 deletions
diff --git a/init-repository b/init-repository
index 4ee9cd17..fffdccb9 100755
--- a/init-repository
+++ b/init-repository
@@ -510,7 +510,9 @@ sub git_clone_all_submodules
}
}
- $self->exe('git', 'submodule', 'update', '--recursive');
+ if ($self->{update}) {
+ $self->exe('git', 'submodule', 'update', '--recursive');
+ }
return;
}
@@ -641,7 +643,9 @@ sub git_clone_one_submodule
}
}
}
- $self->exe('git', 'submodule', 'update');
+ if ($self->{update}) {
+ $self->exe('git', 'submodule', 'update');
+ }
}
chdir("..") or confess "cd ..: $OS_ERROR";
@@ -666,9 +670,7 @@ sub run
$self->git_set_submodule_config;
- if ($self->{update}) {
- $self->git_clone_all_submodules;
- }
+ $self->git_clone_all_submodules;
$self->git_add_remotes('qt5');