diff options
| author | Jack Nagel | 2015-02-08 19:44:39 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2015-02-08 19:44:39 -0500 | 
| commit | a36d2840d38e90524b68f67fb2bf435694ddda22 (patch) | |
| tree | ca5bcb845aedab5fc8c8f92a83eea5c6907e31fa /Library/Homebrew | |
| parent | 39cf4eb21a913c86c28f98806dfb415b6306679e (diff) | |
| download | homebrew-a36d2840d38e90524b68f67fb2bf435694ddda22.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/Homebrew')
| -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 | 
