mirror of
https://github.com/xiph/opus.git
synced 2025-05-14 15:38:32 +00:00
meson: fix get-version script for git worktrees
For git worktree directories .git is not a directory but a file that points to the real .git dir. The `update_version` script used by other builds works correctly with git worktrees. Signed-off-by: Ralph Giles <giles@thaumas.net>
This commit is contained in:
parent
1639592368
commit
61747bc6ec
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue