mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
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>
This commit is contained in:
committed by
Jani Heikkinen
parent
402bf7aec2
commit
38cfc8ec95
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user