Commit cd6354a5 authored by Joshua Kalpin's avatar Joshua Kalpin

Fix method calls to follow proper conventions

parent 81231826
...@@ -167,8 +167,8 @@ module Pod ...@@ -167,8 +167,8 @@ module Pod
# @return [Bool] Whether the given source's remote is reachable. # @return [Bool] Whether the given source's remote is reachable.
# #
def git_remote_reachable?(dir) def git_remote_reachable?(dir)
Dir.chdir(dir) { `git ls-remote` } Dir.chdir(dir) { git('ls-remote') }
$?.exitstatus.zero? $?.success?
end end
# Returns whether a source is a GIT repo. # Returns whether a source is a GIT repo.
...@@ -179,8 +179,8 @@ module Pod ...@@ -179,8 +179,8 @@ module Pod
# @return [Bool] Whether the given source is a GIT repo. # @return [Bool] Whether the given source is a GIT repo.
# #
def git_repo?(dir) def git_repo?(dir)
Dir.chdir(dir) { `git rev-parse >/dev/null 2>&1` } Dir.chdir(dir) { git('rev-parse >/dev/null 2>&1') }
$?.exitstatus.zero? $?.success?
end end
# Checks the version information of the source with the given directory. # Checks the version information of the source with the given directory.
......
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