From: Zbigniew Jędrzejewski-Szmek Date: Wed, 13 Mar 2024 17:17:10 +0000 (+0100) Subject: meson: .git can also be a file X-Git-Tag: v256-rc1~535^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e119797658f5476e66c1226361ba3e9631c717f;p=thirdparty%2Fsystemd.git 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. --- diff --git a/meson.build b/meson.build index 7ac331fb36a..ddda3d71812 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',