formula_versions: use Utils.popen_read instead of backticks
Closes Homebrew/homebrew#37446. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
144453368e
commit
11defcf847
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user