Permalink
Browse files

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

  • Loading branch information...
1 parent 3f6e44a commit 87a78f1e4a11b6b96dfe8dcf69a91bf682c0468d @keith keith committed Dec 27, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/cocoapods/command/push.rb
@@ -27,7 +27,12 @@ def initialize(argv)
@allow_warnings = argv.option('--allow-warnings')
@local_only = argv.option('--local-only')
@repo = argv.shift_argument
- @podspec = argv.shift_argument
+ if @repo.end_with? ".podspec"
+ @podspec = @repo
+ @repo = "master"
+ else
+ @podspec = argv.shift_argument
+ end
super unless argv.empty? && @repo
end

0 comments on commit 87a78f1

Please sign in to comment.