Skip to content

Commit

Permalink
meson: make check false to avoid error with no git
Browse files Browse the repository at this point in the history
  • Loading branch information
dimmus committed Oct 26, 2023
1 parent a6ae325 commit cafd9a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ if version[2] == '99'
git_version = '0'
git = find_program('git', required: false)
if git.found() == true
git_cmd = run_command(git_program, 'rev-list', '--count', 'HEAD', check: true)
git_cmd = run_command(git_program, 'rev-list', '--count', 'HEAD', check: false)
if git_cmd.returncode() == 0
git_version = git_cmd.stdout().strip()
endif
git_commit = run_command(git_program, 'rev-parse', '@', check: true).stdout().strip()
git_commit = run_command(git_program, 'rev-parse', '@', check: false).stdout().strip()
endif
version_rev = '.'.join([version, git_version])
release = 'dev-@0@.@1@.@2@'.format(version[0], version[1], version[2])
Expand Down

0 comments on commit cafd9a7

Please sign in to comment.