Skip to content
Snippets Groups Projects
Commit 11defcf8 authored by Xu Cheng's avatar Xu Cheng
Browse files

formula_versions: use Utils.popen_read instead of backticks


Closes Homebrew/homebrew#37446.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent 14445336
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ class FormulaVersions
end
def file_contents_at_revision(rev)
repository.cd { `git cat-file blob #{rev}:#{entry_name}` }
repository.cd { Utils.popen_read("git", "cat-file", "blob", "#{rev}:#{entry_name}") }
end
def version_at_revision(rev)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment