mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 18:54:25 +00:00
[CMAKE] Add "--always" parameter to "git describe" call
"fatal: No names found, cannot describe anything." message, when called without enough history, i.e. appveyor.yml "clone_depth: 5".
This commit is contained in:
parent
76a73b4295
commit
9822462946
|
@ -39,7 +39,7 @@ if(EXISTS "${REACTOS_SOURCE_DIR}/.git")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND "${GIT_EXECUTABLE}" describe --abbrev=7 --long
|
COMMAND "${GIT_EXECUTABLE}" describe --abbrev=7 --long --always
|
||||||
WORKING_DIRECTORY ${REACTOS_SOURCE_DIR}
|
WORKING_DIRECTORY ${REACTOS_SOURCE_DIR}
|
||||||
OUTPUT_VARIABLE GIT_DESCRIBE_REVISION
|
OUTPUT_VARIABLE GIT_DESCRIBE_REVISION
|
||||||
RESULT_VARIABLE GIT_CALL_RESULT
|
RESULT_VARIABLE GIT_CALL_RESULT
|
||||||
|
|
Loading…
Reference in a new issue