diff --git a/meson.build b/meson.build index 85993a190..eb2733cad 100644 --- a/meson.build +++ b/meson.build @@ -86,8 +86,8 @@ conf_data = configuration_data() version = '"@0@"'.format(meson.project_version()) git = find_program('git', native: true, required: false) if git.found() - git_commit = run_command([git, 'rev-parse', '--short', 'HEAD'], check: true) - git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check: true) + git_commit = run_command([git, 'rev-parse', '--short', 'HEAD'], check: false) + git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check: false) if git_commit.returncode() == 0 and git_branch.returncode() == 0 version = '"@0@-@1@ (" __DATE__ ", branch \'@2@\')"'.format( meson.project_version(),