diff options
| author | Kashif Rasul | 2015-02-08 14:08:48 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-08 14:14:34 +0000 |
| commit | 003d650e8894ec332128b3eae70e2a080522203f (patch) | |
| tree | 1523d10c2c75b9e7f9a13ef1486e750294d88489 | |
| parent | 2abd3298f9520b25550b4f5b27884452b4ddec13 (diff) | |
| download | brew-003d650e8894ec332128b3eae70e2a080522203f.tar.bz2 | |
download_strategy: escape spaces in git submodule path.
for issue Homebrew/homebrew#36646
Closes Homebrew/homebrew#36649.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 |
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 |
