aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorKashif Rasul2015-02-08 14:08:48 +0100
committerMike McQuaid2015-02-08 14:14:34 +0000
commit3a5f099297e9ab3b799af5f7a65edd8d64bc7bae (patch)
treedb0f004178a84e6885f6abe1826526a5d69f8f98 /Library
parent084ca79838579e98c75b863ff7800a36250a25a1 (diff)
downloadhomebrew-3a5f099297e9ab3b799af5f7a65edd8d64bc7bae.tar.bz2
download_strategy: escape spaces in git submodule path.
for issue Homebrew/homebrew#36646 Closes #36649. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
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