Fix cloning with mirrors

Commit 486f5f37761 broke the cloning with one of the mirror options:

git ls-remote git://mirror/qt/qtactiveqt.git.git test/if/mirror/exists
fatal: The remote end hung up unexpectedly

Change-Id: Ia154ee34dd10e35b24676777d8dde98ef0790ee1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
Kai Koehne
2014-11-11 15:14:26 +01:00
committed by Jani Heikkinen
parent 8f35cb2886
commit 402bf7aec2

View File

@@ -460,7 +460,6 @@ sub git_clone_one_submodule
my $mirror;
if ($mirror_url) {
$mirror = $mirror_url.$repo_basename;
$mirror .= ".git" unless (-d $mirror); # Support local disk mirror
}
if ($mirror) {