aboutsummaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-02-04 21:15:18 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-02-06 06:24:10 +0000
commit34c7caab3f2c259c958b804dec4aa814ca12d233 (patch)
tree1225c0584c74627b7e140c1940db59478f6a14f7 /init-repository
parent9ebad7830d5b008d7ef0f0404bc4d8ffe00cba07 (diff)
don't fetch again when updating submodules
we already did it a moment ago. this should affect only the --remote case, but there is no harm in always specifying it. Change-Id: I3ef0854c790726772fb63ab7829b59ef85ac4f18 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository2
1 files changed, 1 insertions, 1 deletions
diff --git a/init-repository b/init-repository
index b0b65409..9a08406e 100755
--- a/init-repository
+++ b/init-repository
@@ -402,7 +402,7 @@ sub git_clone_all_submodules
}
}
if ($self->{update}) {
- my @cmd = ('git', 'submodule', 'update');
+ my @cmd = ('git', 'submodule', 'update', '--no-fetch');
push @cmd, '--remote', '--rebase' if ($co_branch);
$self->exe(@cmd);