diff options
| author | Markus Reiter | 2016-10-03 16:12:19 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-10-04 14:45:11 +0200 |
| commit | 23dec587fd26c606e459e72b2987e73bc910a095 (patch) | |
| tree | 269faef30d682247c26d2e6afdd2fc41ece2f138 /Library/Homebrew/cask/lib | |
| parent | cafe1497808ef1ddb002061665ad606aa2340d10 (diff) | |
| download | brew-23dec587fd26c606e459e72b2987e73bc910a095.tar.bz2 | |
Make `core_tap_version_string` reusable.
Diffstat (limited to 'Library/Homebrew/cask/lib')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/version.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/version.rb b/Library/Homebrew/cask/lib/hbc/version.rb index 471fd1999..2eb942b95 100644 --- a/Library/Homebrew/cask/lib/hbc/version.rb +++ b/Library/Homebrew/cask/lib/hbc/version.rb @@ -1,13 +1,10 @@ -HBC_VERSION = "0.60.0".freeze - module Hbc def self.full_version @full_version ||= begin - revision, commit = Dir.chdir(Hbc.default_tap.path) do - [`git rev-parse --short=4 --verify -q HEAD 2>/dev/null`.chomp, - `git show -s --format="%cr" HEAD 2>/dev/null`.chomp] - end - "#{HBC_VERSION} (git revision #{revision}; last commit #{commit})" + <<-EOS.undent + Homebrew-Cask #{HOMEBREW_VERSION} + caskroom/homebrew-cask #{Hbc.default_tap.version_string} + EOS end end end |
