Commit 590edcea authored by Nate West's avatar Nate West

Merge pull request #5371 from CocoaPods/help-validation

[Repo Push] Help validation
parents 277eb7ad fe5819e0
......@@ -49,14 +49,13 @@ module Pod
end
def validate!
super
help! 'A spec-repo name is required.' unless @repo
unless @source.repo.directory?
raise Informative,
"Unable to find the `#{@repo}` repo. " \
'If it has not yet been cloned, add it via `pod repo add`.'
end
super
end
def run
......
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