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 <simon.hausmann@theqtcompany.com>
This commit is contained in:
Oswald Buddenhagen
2015-02-04 21:12:57 +01:00
committed by Simon Hausmann
parent 1ad0a17fa0
commit 9ebad7830d

View File

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