summaryrefslogtreecommitdiff
path: root/init-repository
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@theqtcompany.com>2014-10-31 11:02:00 +0100
committerJan Arve Sæther <jan-arve.saether@theqtcompany.com>2014-11-03 12:50:42 +0100
commit00a3c36bc18ff7908edea01b70dbf374ce31a1a6 (patch)
treea4a5085a9c0d859eb267a2e3c806be57f901b440 /init-repository
parentca7018cd4f892d0b6938ab276305f6ae02dcc07b (diff)
downloadqt5-00a3c36bc18ff7908edea01b70dbf374ce31a1a6.tar.gz
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>
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository2
1 files changed, 1 insertions, 1 deletions
diff --git a/init-repository b/init-repository
index 2902181b..6a2d2f74 100755
--- a/init-repository
+++ b/init-repository
@@ -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 {