From 2107830b1ed1dc2ed471b5fa60bead099aad0fbb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 2 Feb 2022 15:34:13 +0100 Subject: [PATCH] build: explicitly set check arg for run_command References: https://github.com/mesonbuild/meson/issues/9300 --- meson.build | 4 ++-- 1 file 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