diff options
| author | Jack Nagel | 2015-02-08 19:44:39 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-02-08 19:44:39 -0500 |
| commit | 5c758f7852d2305c3c74ffbb7aae83b22c0fefa6 (patch) | |
| tree | 8398a8abdd108922cc67495ce54f6ab3b1fc3caa /Library | |
| parent | e547438ff43426e31dac3ef070b2feecd8a4621b (diff) | |
| download | brew-5c758f7852d2305c3c74ffbb7aae83b22c0fefa6.tar.bz2 | |
Revert "download_strategy: escape spaces in git submodule path."
This is causing submodules to be checked out into a path with a literal
"$path" component:
$ find . | grep "\$path$"
./$path
./Carthage/Checkouts/Commandant/$path
./Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/$path
./Carthage/Checkouts/PrettyColors/$path
./Carthage/Checkouts/Quick/$path
./Carthage/Checkouts/ReactiveCocoa/$path
./Carthage/Checkouts/ReactiveCocoa/Carthage/Checkouts/Quick/$path
./Carthage/Checkouts/ReactiveTask/$path
./Carthage/Checkouts/ReactiveTask/Carthage/Checkouts/Quick/$path
./Carthage/Checkouts/ReactiveTask/Carthage/Checkouts/ReactiveCocoa/$path
./Carthage/Checkouts/ReactiveTask/Carthage/Checkouts/ReactiveCocoa/Carthage.checkout/Quick/$path
This reverts commit 3a5f099297e9ab3b799af5f7a65edd8d64bc7bae.
Diffstat (limited to 'Library')
| -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 c2af94691..9b3759413 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 |
