Commit 217bd92e authored by Fabio Pelosin's avatar Fabio Pelosin

Merge pull request #2177 from edwardvalentini/pushfix

fix pod repo push to first check if Specs Dir exists
parents e1e79d4c a629328e
...@@ -2,8 +2,13 @@ ...@@ -2,8 +2,13 @@
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 ## Master
* Fixed pod repo push to first check if Specs directory exists and if so push there.
[Edward Valentini](edwardvalentini)
[#2060](https://github.com/CocoaPods/CocoaPods/issues/2060)
* Fixed `pod outdated` to not include subspecs. * Fixed `pod outdated` to not include subspecs.
[Ash Furrow](ashfurrow] [Ash Furrow](ashfurrow]
[#2136](https://github.com/CocoaPods/CocoaPods/issues/2136) [#2136](https://github.com/CocoaPods/CocoaPods/issues/2136)
......
...@@ -172,8 +172,15 @@ module Pod ...@@ -172,8 +172,15 @@ module Pod
# @return [Pathname] The directory of the repository. # @return [Pathname] The directory of the repository.
# #
def repo_dir def repo_dir
specs_dir = Pathname.new(File.join(config.repos_dir, @repo, 'Specs'))
dir = config.repos_dir + @repo dir = config.repos_dir + @repo
raise Informative, "`#{@repo}` repo not found" unless dir.exist? if specs_dir.exist?
dir = specs_dir
elsif dir.exist?
dir
else
raise Informative, "`#{@repo}` repo not found either in #{specs_dir} or #{dir}"
end
dir dir
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