mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 23:29:55 -05:00
ExternalProject: Run git checkout with -- to clarify arguments
Fix the case when the tag name to be checked out also happens to match a path name. Fixes: #16678
This commit is contained in:
@@ -594,7 +594,7 @@ if(error_code)
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND \"${git_EXECUTABLE}\" \${git_options} checkout ${git_tag}
|
||||
COMMAND \"${git_EXECUTABLE}\" \${git_options} checkout ${git_tag} --
|
||||
WORKING_DIRECTORY \"${work_dir}/${src_name}\"
|
||||
RESULT_VARIABLE error_code
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user