Ignore alternate if its not a git repo

Don't just check if the submodule folder exist, since that doesn't
qualify it for being a valid git repo.

Change-Id: Ia3902714a0554908c0b8fd3228ed6fc2cfddd344
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
Jan Arve Saether 2014-10-31 11:02:00 +01:00 committed by Jan Arve Sæther
parent ca7018cd4f
commit 00a3c36bc1
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ sub git_clone_one_submodule
if ($alternates) {
# alternates is a qt5 repo, so the submodule will be under that.
if (-d "$alternates/$submodule") {
if (-e "$alternates/$submodule/.git") {
@reference_args = ('--reference', "$alternates/$submodule");
}
else {