diff options
author | Brad King <brad.king@kitware.com> | 2021-05-10 14:04:59 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-05-10 14:05:11 (GMT) |
commit | f889758ac7af41b3c6d0e3ce4a95fed82a50395e (patch) | |
tree | c2c0360460bc60af38e2472a8ded8f4da76e0a22 /Modules | |
parent | 9a318a6c7a5c32de3646d6facc7586f968cc494f (diff) | |
parent | 5e941a545bf5882ddf101cad383dc815fb651f26 (diff) | |
download | CMake-f889758ac7af41b3c6d0e3ce4a95fed82a50395e.zip CMake-f889758ac7af41b3c6d0e3ce4a95fed82a50395e.tar.gz CMake-f889758ac7af41b3c6d0e3ce4a95fed82a50395e.tar.bz2 |
Merge topic 'ep-update-git-hash-missing'
5e941a545b ExternalProject: Ensure git fetch if updating to hash we don't have yet
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !6109
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/ExternalProject-gitupdate.cmake.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalProject-gitupdate.cmake.in b/Modules/ExternalProject-gitupdate.cmake.in index 7033918..461e323 100644 --- a/Modules/ExternalProject-gitupdate.cmake.in +++ b/Modules/ExternalProject-gitupdate.cmake.in @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.5) function(get_hash_for_ref ref out_var err_var) execute_process( - COMMAND "@git_EXECUTABLE@" rev-parse "${ref}" + COMMAND "@git_EXECUTABLE@" rev-parse "${ref}^{commit}" WORKING_DIRECTORY "@work_dir@" RESULT_VARIABLE error_code OUTPUT_VARIABLE ref_hash |