ExternalProject: Quote each git --config option to handle spaces

Fixes: #20354
This commit is contained in:
Craig Scott
2020-02-15 13:21:32 +11:00
parent 40d1d29cfa
commit ef3194a6f8
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1096,7 +1096,7 @@ function(_ep_write_gitclone_script script_filename source_dir git_EXECUTABLE git
list(APPEND git_clone_options --progress)
endif()
foreach(config IN LISTS git_config)
list(APPEND git_clone_options --config ${config})
list(APPEND git_clone_options --config \"${config}\")
endforeach()
if(NOT ${git_remote_name} STREQUAL "origin")
list(APPEND git_clone_options --origin \"${git_remote_name}\")