mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-02 03:36:54 +08:00
Let init-repository build the mirror URL from the original URL
This allows repositories that have a different submodule name than their URL file part to be using the mirror. i.e. qtwebengine's src/3rdparty mapped to .../qt/qtwebengine-chromium.git Change-Id: Ibea9cb9db701c95fc6f8b0e2457de74823aeeba5 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user