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:
Brad King
2017-02-24 13:21:06 -05:00
parent 6cbad490c2
commit a9fa6a2c77
+1 -1
View File
@@ -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
)