aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2017-01-22 14:37:39 +0100
committerRechi <Rechi@users.noreply.github.com>2017-01-22 23:52:20 +0100
commitd3f39c1b2ce9b6459563cf704f12e4d7259f89ab (patch)
treee313b0f5c3961116503a36a75d82814136afde12 /project
parent118f3ad3eb8608067be1fe9d1e93b348ee22eae5 (diff)
[cmake] git update-index --refresh must be called before using it
Diffstat (limited to 'project')
-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})