aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-03 16:12:19 +0200
committerMarkus Reiter2016-10-04 14:45:11 +0200
commit23dec587fd26c606e459e72b2987e73bc910a095 (patch)
tree269faef30d682247c26d2e6afdd2fc41ece2f138 /Library/Homebrew/utils.rb
parentcafe1497808ef1ddb002061665ad606aa2340d10 (diff)
downloadbrew-23dec587fd26c606e459e72b2987e73bc910a095.tar.bz2
Make `core_tap_version_string` reusable.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 04d157262..fbe603b91 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -173,18 +173,6 @@ module Homebrew
_system(cmd, *args)
end
- def core_tap_version_string
- require "tap"
- tap = CoreTap.instance
- return "N/A" unless tap.installed?
- if pretty_revision = tap.git_short_head
- last_commit = tap.git_last_commit_date
- "(git revision #{pretty_revision}; last commit #{last_commit})"
- else
- "(no git repository)"
- end
- end
-
def install_gem_setup_path!(name, version = nil, executable = name)
# Respect user's preferences for where gems should be installed.
ENV["GEM_HOME"] = ENV["GEM_OLD_HOME"].to_s