Permalink
Browse files

Merge pull request #709 from Keithbsmiley/master

Pod push default repo
  • Loading branch information...
2 parents 3f6e44a + 87a78f1 commit ac413d49b4d5dcde95fe24e7a369d31fddaf0598 @keith keith committed Jan 7, 2013
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 ac413d4

Please sign in to comment.