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>
This commit is contained in:
Oswald Buddenhagen
2015-02-04 21:15:18 +01:00
committed by Simon Hausmann
parent 9ebad7830d
commit 34c7caab3f

View File

@@ -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);