Commit 6cb43f17 authored by Hugo Tunius's avatar Hugo Tunius

[SourceManager] Use Executable in favour of backticks in git_repo?

parent b45a5189
......@@ -234,7 +234,7 @@ module Pod
# @return [Bool] Whether the given source is a GIT repo.
#
def git_repo?(dir)
Dir.chdir(dir) { `git rev-parse >/dev/null 2>&1` }
Dir.chdir(dir) { git %(rev-parse) }
$?.success?
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