summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-03-13 18:17:10 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-03-13 18:37:41 +0100
commit9e119797658f5476e66c1226361ba3e9631c717f (patch)
tree8dafcb4f11b26792c8c181b5c41d1f9413d15843 /meson.build
parentupdate TODO (diff)
downloadsystemd-9e119797658f5476e66c1226361ba3e9631c717f.tar.xz
systemd-9e119797658f5476e66c1226361ba3e9631c717f.zip
meson: .git can also be a file
With git-worktree, .git is just a file that specifies where the parent git directory is. All the git information is available in a git worktree, so it should be treated the same as a checkout with a .git directory.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 7ac331fb36..ddda3d7181 100644
--- a/meson.build
+++ b/meson.build
@@ -1853,7 +1853,7 @@ endif
conf.set_quoted('VERSION_TAG', version_tag)
vcs_tag = get_option('vcs-tag')
-if vcs_tag and fs.is_dir(project_source_root / '.git')
+if vcs_tag and fs.exists(project_source_root / '.git')
version_h = vcs_tag(
input : 'src/version/version.h.in',
output : 'version.h',