Pod push default repo #709

Merged
merged 1 commit into from Jan 7, 2013
Jump to file or symbol
Failed to load files and symbols.
+6 −1
Split
@@ -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