diff options
| author | Simon Ser <contact@emersion.fr> | 2022-02-02 15:34:13 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2022-02-02 15:34:13 +0100 |
| commit | 2107830b1ed1dc2ed471b5fa60bead099aad0fbb (patch) | |
| tree | ba5ab518ca6c21efb25181e64af03dbf41808b45 /meson.build | |
| parent | 1d1c75b6316d21933069a9d201f966d84099f6ca (diff) | |
build: explicitly set check arg for run_command
References: https://github.com/mesonbuild/meson/issues/9300
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 3b349c7..099150e 100644 --- a/meson.build +++ b/meson.build @@ -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 |
