summaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-11-10 18:10:31 +0100
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>2014-11-12 10:49:16 +0100
commit38cfc8ec958a73aa3b5e8f110441728c60e5bb2e (patch)
tree755bfc1b3a66b8c37f3460b0b2a86be13035bb3a /init-repository
parent402bf7aec25d5224e1d725c551e8162420aaea29 (diff)
don't fetch unless we are updating
it's just wasting time. Change-Id: I541cc535c5c95b0140cfa14d7cb042dbe029525e Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository2
1 files changed, 1 insertions, 1 deletions
diff --git a/init-repository b/init-repository
index 0028b7bd..9844f38c 100755
--- a/init-repository
+++ b/init-repository
@@ -485,7 +485,7 @@ sub git_clone_one_submodule
$self->exe('git', 'config', 'remote.mirror.fetch', '+refs/heads/*:refs/remotes/mirror/*');
}
- if (!$do_clone) {
+ if (!$do_clone && $self->{update}) {
$self->exe('git', 'fetch', ($mirror ? $mirror : $url));
}