Skip to content
Snippets Groups Projects
Commit 003d650e authored by Kashif Rasul's avatar Kashif Rasul Committed by Mike McQuaid
Browse files

download_strategy: escape spaces in git submodule path.


for issue Homebrew/homebrew#36646

Closes Homebrew/homebrew#36649.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 2abd3298
No related branches found
No related tags found
No related merge requests found
......@@ -652,7 +652,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
def checkout_submodules(dst)
escaped_clone_path = cached_location.to_s.gsub(/\//, '\/')
sub_cmd = "git checkout-index -a -f --prefix=#{dst}/${toplevel/#{escaped_clone_path}/}/$path/"
sub_cmd = "git checkout-index -a -f --prefix=#{dst}/${toplevel/#{escaped_clone_path}/}/\'$path\'/"
quiet_safe_system "git", "submodule", "foreach", "--recursive", sub_cmd
end
end
......
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