From 11defcf847666adac44f0ff53a7f8ead9a7ac5f1 Mon Sep 17 00:00:00 2001 From: Xu Cheng <xucheng@me.com> Date: Fri, 6 Mar 2015 22:30:22 +0800 Subject: [PATCH] formula_versions: use Utils.popen_read instead of backticks Closes Homebrew/homebrew#37446. Signed-off-by: Xu Cheng <xucheng@me.com> --- Library/Homebrew/formula_versions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_versions.rb b/Library/Homebrew/formula_versions.rb index 61192dd657..8f8f644ff6 100644 --- a/Library/Homebrew/formula_versions.rb +++ b/Library/Homebrew/formula_versions.rb @@ -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) -- GitLab