Commit 89f81e10 authored by Fabio Pelosin's avatar Fabio Pelosin

[#112] Improved remote url detection for spec repo

parent 613db0bc
......@@ -67,7 +67,7 @@ module Pod
def read_url
Dir.chdir(dir) do
@output = git("remote -v")
@output = git('config --get remote.origin.url')
end
end
......
......@@ -28,7 +28,7 @@ module Pod
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
......
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