https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9822462946a84f228629f…
commit 9822462946a84f228629ffabdb0066716ae0e64a
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Tue May 29 16:02:26 2018 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Tue Jun 5 18:59:11 2018 +0200
[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".
---
sdk/include/reactos/version.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/include/reactos/version.cmake b/sdk/include/reactos/version.cmake
index 75dacc321c..e0eae0a064 100644
--- a/sdk/include/reactos/version.cmake
+++ b/sdk/include/reactos/version.cmake
@@ -39,7 +39,7 @@ if(EXISTS "${REACTOS_SOURCE_DIR}/.git")
endif()
execute_process(
- COMMAND "${GIT_EXECUTABLE}" describe --abbrev=7 --long
+ COMMAND "${GIT_EXECUTABLE}" describe --abbrev=7 --long --always
WORKING_DIRECTORY ${REACTOS_SOURCE_DIR}
OUTPUT_VARIABLE GIT_DESCRIBE_REVISION
RESULT_VARIABLE GIT_CALL_RESULT