aboutsummaryrefslogtreecommitdiff
path: root/project/cmake/scripts/common/Macros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'project/cmake/scripts/common/Macros.cmake')
-rw-r--r--project/cmake/scripts/common/Macros.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/project/cmake/scripts/common/Macros.cmake b/project/cmake/scripts/common/Macros.cmake
index 6b5a2f1a7e..d8cdce9ce2 100644
--- a/project/cmake/scripts/common/Macros.cmake
+++ b/project/cmake/scripts/common/Macros.cmake
@@ -584,6 +584,7 @@ function(core_find_git_rev stamp)
else()
find_package(Git)
if(GIT_FOUND AND EXISTS ${CORE_SOURCE_DIR}/.git)
+ execute_process(COMMAND ${GIT_EXECUTABLE} update-index --ignore-submodules --refresh -q)
execute_process(COMMAND ${GIT_EXECUTABLE} diff-files --ignore-submodules --quiet --
RESULT_VARIABLE status_code
WORKING_DIRECTORY ${CORE_SOURCE_DIR})