diff --git a/meson/get-version.py b/meson/get-version.py index 0e8b8623a2c7b9206cf3e4a1ac76322de44067d2..d3835f134c81d5c965743b835a6189a23f6555e0 100755 --- a/meson/get-version.py +++ b/meson/get-version.py @@ -31,7 +31,7 @@ if __name__ == '__main__': # check if git checkout git_dir = os.path.join(srcroot, '.git') - is_git = os.path.isdir(git_dir) + is_git = os.path.isdir(git_dir) or os.path.isfile(git_dir) have_git = shutil.which('git') is not None if is_git and have_git: