mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
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
This commit is contained 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
|
||||
|
||||
Reference in New Issue
Block a user