Commit 87a78f1e authored by Keith Smiley's avatar Keith Smiley

If a repo isn't passed to push default to master

parent 3f6e44ad
...@@ -27,7 +27,12 @@ module Pod ...@@ -27,7 +27,12 @@ module Pod
@allow_warnings = argv.option('--allow-warnings') @allow_warnings = argv.option('--allow-warnings')
@local_only = argv.option('--local-only') @local_only = argv.option('--local-only')
@repo = argv.shift_argument @repo = argv.shift_argument
if @repo.end_with? ".podspec"
@podspec = @repo
@repo = "master"
else
@podspec = argv.shift_argument @podspec = argv.shift_argument
end
super unless argv.empty? && @repo super unless argv.empty? && @repo
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