mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 04:25:42 +02:00
meson: quote --git-dir argument
This commit is contained in:
parent
660d8165f5
commit
f1fad90338
1 changed files with 2 additions and 2 deletions
|
@ -14,12 +14,12 @@ git = find_program('git', required: false, native: true)
|
|||
if git.found()
|
||||
commit_hash = run_command(
|
||||
[sh.path(), '-c',
|
||||
'@0@ --git-dir=$MESON_SOURCE_ROOT/.git describe --always --tags'.format(
|
||||
'@0@ --git-dir="$MESON_SOURCE_ROOT/.git" describe --always --tags'.format(
|
||||
git.path())])
|
||||
|
||||
branch = run_command(
|
||||
[sh.path(), '-c',
|
||||
'@0@ --git-dir=$MESON_SOURCE_ROOT/.git rev-parse --abbrev-ref HEAD'.format(
|
||||
'@0@ "--git-dir=$MESON_SOURCE_ROOT/.git" rev-parse --abbrev-ref HEAD'.format(
|
||||
git.path())])
|
||||
|
||||
if commit_hash.returncode() == 0 and branch.returncode() == 0
|
||||
|
|
Loading…
Add table
Reference in a new issue