summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-02-04 21:12:57 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-02-06 06:24:06 +0000
commit9ebad7830d5b008d7ef0f0404bc4d8ffe00cba07 (patch)
treec00dcda66ca9bc338cd3650a609bd19a94bfa7bf
parent1ad0a17fa0068e5df8d0ccea2100936c583bc11e (diff)
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>
-rwxr-xr-xinit-repository3
1 files changed, 2 insertions, 1 deletions
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();