Permalink
Browse files

[#112] Improved remote url detection for spec repo

  • Loading branch information...
1 parent 613db0b commit 89f81e1082b525c3e472b12e3c90250c82f5c34c @fabiopelosin fabiopelosin committed Mar 20, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/cocoapods/command/repo.rb
  2. +1 −1 lib/cocoapods/command/setup.rb
@@ -67,7 +67,7 @@ def set_url
def read_url
Dir.chdir(dir) do
- @output = git("remote -v")
+ @output = git('config --get remote.origin.url')
end
end
@@ -28,7 +28,7 @@ def initialize(argv)
def already_push?
if master_repo_exists?
read_master_repo_remote_command.run
- read_master_repo_remote_command.output.include? master_repo_url_with_push
+ read_master_repo_remote_command.output.chomp == master_repo_url_with_push
else
false
end

0 comments on commit 89f81e1

Please sign in to comment.