mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03: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