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
commitb78cc2ed40877dd5c0cc46671270fb89f068b610 (patch)
tree99ec6323fefd01916063a1f830e2cafb1ca8beea /Library
parent72d873c5d6cf4a4137071a42a5f83f890242afe6 (diff)
downloadhomebrew-b78cc2ed40877dd5c0cc46671270fb89f068b610.tar.bz2
formula_versions: use Utils.popen_read instead of backticks
Closes #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)