Change logic to detect .git directory on repositories (or file on submodules)

This commit is contained in:
Salamandar
2019-11-14 14:14:53 +00:00
parent 9cd0584e90
commit e4c7fc2334

View File

@ -17,8 +17,8 @@ warnings = []
# git-version.h is already present and not generated if dist tarball
is_dist_tarball = run_command('python', '-c',
'import sys,os; sys.exit(0 if os.path.exists("git-version.h") else 1)'
).returncode() == 0
'import sys,os; sys.exit(0 if os.path.exists(".git") else 1)'
).returncode() == 1
################################################################################
# Project info