From 34c7caab3f2c259c958b804dec4aa814ca12d233 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 4 Feb 2015 21:15:18 +0100 Subject: 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 --- init-repository | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init-repository') 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); -- cgit v1.2.3