]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: .git can also be a file
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 13 Mar 2024 17:17:10 +0000 (18:17 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 13 Mar 2024 17:37:41 +0000 (18:37 +0100)
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.

meson.build

index 7ac331fb36ae509c63fda40a40a40cb58fe39568..ddda3d718129f83eea1c008673f159ac631d5097 100644 (file)
@@ -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',