mirror of
https://github.com/systemd/systemd.git
synced 2025-02-03 17:47:28 +03:00
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.
This commit is contained in:
parent
54b0e05ed0
commit
9e11979765
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user