aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tab.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-30 19:15:03 -0500
committerJack Nagel2014-06-30 19:18:28 -0500
commit4c05d411f3345c083c933b3666229cd555162e0d (patch)
tree0136a8eeb3bc3ac9a33998221453282c79a83ebf /Library/Homebrew/tab.rb
parentc904c71792233c5564a5b73814bfbb8d81389b50 (diff)
downloadbrew-4c05d411f3345c083c933b3666229cd555162e0d.tar.bz2
Add a method for getting the repo HEAD
Diffstat (limited to 'Library/Homebrew/tab.rb')
-rw-r--r--Library/Homebrew/tab.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index 52b74e5c9..b5bd8a2ad 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -14,10 +14,6 @@ class Tab < OpenStruct
build = f.build.dup
build.args = args
- sha = HOMEBREW_REPOSITORY.cd do
- `git rev-parse --verify -q HEAD 2>/dev/null`.chuzzle
- end
-
Tab.new :used_options => build.used_options,
:unused_options => build.unused_options,
:tabfile => f.prefix.join(FILENAME),
@@ -25,7 +21,7 @@ class Tab < OpenStruct
:poured_from_bottle => false,
:tapped_from => f.tap,
:time => Time.now.to_i,
- :HEAD => sha,
+ :HEAD => Homebrew.git_head,
:compiler => compiler,
:stdlib => stdlib
end