summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-08-05 11:13:41 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-08-05 11:17:31 +0400
commitad0baea50359c1978a9224ee60bf98d97bfb991f (patch)
treeb2db1a0c005722a0f6e877fb44bd5747723a64bf
parentd8054af4381dcef17ae691775c96a60116823047 (diff)
downloadgcab-ad0baea50359c1978a9224ee60bf98d97bfb991f.tar.gz
meson: git version is optional
My bad, git may be present, but running "git abbrev" from the tarball extracted project can fail. Fix commit a755e2ae77035aad9644adadaec5ecf15e9656ba ("meson: fix new warning about run_command()") Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 15fd5cd..5eba715 100644
--- a/meson.build
+++ b/meson.build
@@ -8,7 +8,7 @@ project('gcab', 'c',
git_version = []
git = find_program('git', required: false)
if git.found()
- git_version = run_command(git, 'describe', '--abbrev=4', '--dirty', check: true).stdout().strip().split('-')
+ git_version = run_command(git, 'describe', '--abbrev=4', '--dirty', check: false).stdout().strip().split('-')
endif
# libtool versioning