aboutsummaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository4
1 files changed, 3 insertions, 1 deletions
diff --git a/init-repository b/init-repository
index 9844f38c..6a7bd38e 100755
--- a/init-repository
+++ b/init-repository
@@ -387,7 +387,9 @@ sub git_clone_all_submodules
}
if ($self->{update}) {
- $self->exe('git', 'submodule', 'update', ($co_branch ? ('--remote', '--rebase') : ()));
+ my @cmd = ('git', 'submodule', 'update');
+ push @cmd, '--remote', '--rebase' if ($co_branch);
+ $self->exe(@cmd);
foreach my $module (@modules) {
if (-f $module.'/.gitmodules') {