diff options
author | Jan Palus <jpalus@fastmail.com> | 2023-11-21 21:53:16 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-27 15:22:22 +0000 |
commit | 8efa6c383709fcfb8871e0168e8aa3f97892e4f4 (patch) | |
tree | 3c816c87c8ae05e1f610d18831ae3a2625f74eeb /common | |
parent | 0c4812aa72f4a34d342ef3939587a95cbfa0bf40 (diff) | |
download | mpv-8efa6c383709fcfb8871e0168e8aa3f97892e4f4.tar.bz2 mpv-8efa6c383709fcfb8871e0168e8aa3f97892e4f4.tar.xz |
build: restrict git describe to top level source directory
fix version determination when building mpv from release tarball
extracted within another git repository
Diffstat (limited to 'common')
-rw-r--r-- | common/meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/meson.build b/common/meson.build index 4bca5ea435..202880f365 100644 --- a/common/meson.build +++ b/common/meson.build @@ -1,5 +1,8 @@ version_h = vcs_tag( - command: ['git', 'describe', '--always', '--tags', '--dirty'], + command: ['git', + '--git-dir=' + join_paths(source_root, '.git'), + '--work-tree=' + source_root, + 'describe', '--always', '--tags', '--dirty'], input: 'version.h.in', output: 'version.h', replace_string: '@VERSION@', |