From 003d650e8894ec332128b3eae70e2a080522203f Mon Sep 17 00:00:00 2001 From: Kashif Rasul Date: Sun, 8 Feb 2015 14:08:48 +0100 Subject: download_strategy: escape spaces in git submodule path. for issue Homebrew/homebrew#36646 Closes Homebrew/homebrew#36649. Signed-off-by: Mike McQuaid --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 9b3759413..c2af94691 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -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 -- cgit v1.2.3