diff options
Diffstat (limited to 'init-repository')
-rwxr-xr-x | init-repository | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init-repository b/init-repository index 1774003c..4757f4f0 100755 --- a/init-repository +++ b/init-repository @@ -540,8 +540,8 @@ sub git_clone_one_submodule } my $mirror; - if ($mirror_url) { - $mirror = $mirror_url."qt/$submodule"; + if ($mirror_url and $url =~ /\/(qt\/[^.]+)\.git/) { + $mirror = $mirror_url.$1; $mirror .= ".git" unless (-d $mirror); # Support local disk mirror } |