aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-03-06 22:30:22 +0800
committerXu Cheng2015-03-07 12:03:27 +0800
commit11defcf847666adac44f0ff53a7f8ead9a7ac5f1 (patch)
tree6a9fca6fc6e83159bb365ae288e07dfaa2bfa3ba /Library
parent144453368ed42c13e24143dd4e234795eb67f3cb (diff)
downloadbrew-11defcf847666adac44f0ff53a7f8ead9a7ac5f1.tar.bz2
formula_versions: use Utils.popen_read instead of backticks
Closes Homebrew/homebrew#37446. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_versions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_versions.rb b/Library/Homebrew/formula_versions.rb
index 61192dd65..8f8f644ff 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)