diff options
author | Brad King <brad.king@kitware.com> | 2021-06-21 14:03:18 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-06-21 14:03:36 (GMT) |
commit | b948b466686b2ce8c52caafe8595d0b2563cdbad (patch) | |
tree | 23f2671a6b2825a7bb185f32ffd406716feea7f2 | |
parent | 782b6bfc26587e353011cf2e96a5e731839dabe1 (diff) | |
parent | 360ff17dc6e3dba2af56b13fa43b246633e13465 (diff) | |
download | CMake-b948b466686b2ce8c52caafe8595d0b2563cdbad.zip CMake-b948b466686b2ce8c52caafe8595d0b2563cdbad.tar.gz CMake-b948b466686b2ce8c52caafe8595d0b2563cdbad.tar.bz2 |
Merge topic 'ep-git-update-commit-ref' into release-3.21
360ff17dc6 ExternalProject: Use ${ref}^0 to avoid MSYS/Cygwin shell substitutions
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6249
-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 461e323..0de2372 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}^{commit}" + COMMAND "@git_EXECUTABLE@" rev-parse "${ref}^0" WORKING_DIRECTORY "@work_dir@" RESULT_VARIABLE error_code OUTPUT_VARIABLE ref_hash |