build: explicitly set check arg for run_command
References: https://github.com/mesonbuild/meson/issues/9300
This commit is contained in:
parent
1d1c75b631
commit
2107830b1e
@ -52,8 +52,8 @@ wayland_scanner = find_program('wayland-scanner')
|
||||
|
||||
version = '"@0@"'.format(meson.project_version())
|
||||
if git.found()
|
||||
git_commit_hash = run_command([git, 'describe', '--always', '--tags'])
|
||||
git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'])
|
||||
git_commit_hash = run_command([git, 'describe', '--always', '--tags'], check: false)
|
||||
git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check: false)
|
||||
if git_commit_hash.returncode() == 0 and git_branch.returncode() == 0
|
||||
version = '"@0@ (" __DATE__ ", branch \'@1@\')"'.format(git_commit_hash.stdout().strip(), git_branch.stdout().strip())
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user