Skip to content
Snippets Groups Projects
Commit b948b466 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'ep-git-update-commit-ref' into release-3.21


360ff17d ExternalProject: Use ${ref}^0 to avoid MSYS/Cygwin shell substitutions

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !6249
parents 782b6bfc 360ff17d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment