build: fix version generation to its previous behavior

This will change the version format from

v0.8.0-dev-nightly-12-g1a07044c1

to

v0.8.0-dev-698-ga5920e98f

Closes https://github.com/neovim/neovim/issues/19499
This commit is contained in:
Dundar Goc 2022-07-26 11:19:52 +02:00
parent 1a07044c1c
commit 46bf1ec791

View File

@ -7,7 +7,7 @@ set(NVIM_VERSION_MEDIUM
"v${NVIM_VERSION_MAJOR}.${NVIM_VERSION_MINOR}.${NVIM_VERSION_PATCH}${NVIM_VERSION_PRERELEASE}")
execute_process(
COMMAND git describe --first-parent --tags --always --dirty
COMMAND git describe --first-parent --dirty
OUTPUT_VARIABLE GIT_TAG
ERROR_VARIABLE ERR
RESULT_VARIABLE RES