From 9ebad7830d5b008d7ef0f0404bc4d8ffe00cba07 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 4 Feb 2015 21:12:57 +0100 Subject: don't checkout when cloning we will subsequently do a submodule update with a possibly different sha1 anyway. Change-Id: I4950f3727e4263a73c32eff8460962d5796bc5f3 Reviewed-by: Simon Hausmann --- init-repository | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init-repository') diff --git a/init-repository b/init-repository index c6dd29b4..b0b65409 100755 --- a/init-repository +++ b/init-repository @@ -476,7 +476,8 @@ sub git_clone_one_submodule my $do_clone = (! -e "$submodule/.git"); if ($do_clone) { - $self->exe('git', 'clone', @reference_args, ($mirror ? $mirror : $url), $submodule); + $self->exe('git', 'clone', '--no-checkout', @reference_args, + ($mirror ? $mirror : $url), $submodule); } my $orig_cwd = getcwd(); -- cgit v1.2.3