mirror of https://github.com/qt/qt5.git
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:
parent
ca7018cd4f
commit
00a3c36bc1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue