Commit 9a4e304c authored by Marc Boquet's avatar Marc Boquet

Test and documentation for issue #1694

parent e44da0de
...@@ -2,6 +2,15 @@ ...@@ -2,6 +2,15 @@
To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides/installing_cocoapods.html). To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides/installing_cocoapods.html).
## Master
[CocoaPods](https://github.com/jverkoey/CocoaPods/compare/0.30.0...master)
###### Enhancements
* Unset the `CDPATH` env variable before shelling-out on `prepare_command`
[Marc Boquet](https://github.com/apalancat)
[#1943](https://github.com/CocoaPods/CocoaPods/pull/1943)
## 0.30.0 ## 0.30.0
[CocoaPods](https://github.com/jverkoey/CocoaPods/compare/0.29.0...0.30.0) [CocoaPods](https://github.com/jverkoey/CocoaPods/compare/0.29.0...0.30.0)
......
...@@ -114,6 +114,10 @@ module Pod ...@@ -114,6 +114,10 @@ module Pod
# Runs the prepare command bash script of the spec. # Runs the prepare command bash script of the spec.
# #
# @note Unsets the `CDPATH` env variable before running the
# shell script to avoid issues with relative paths
# (issue #1694).
#
# @return [void] # @return [void]
# #
def run_prepare_command def run_prepare_command
......
...@@ -83,6 +83,13 @@ module Pod ...@@ -83,6 +83,13 @@ module Pod
@installer.install! @installer.install!
end.message.should.match /command not found/ end.message.should.match /command not found/
end end
it "unsets $CDPATH environment variable" do
ENV['CDPATH'] = "BogusPath"
@spec.prepare_command = "cd Classes;ls Banana.h"
lambda { @installer.install! }.should.not.raise
end
end end
#--------------------------------------# #--------------------------------------#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment