diff options
| author | Jack Nagel | 2014-06-30 19:15:03 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-30 19:18:28 -0500 |
| commit | 4c05d411f3345c083c933b3666229cd555162e0d (patch) | |
| tree | 0136a8eeb3bc3ac9a33998221453282c79a83ebf /Library/Homebrew/tab.rb | |
| parent | c904c71792233c5564a5b73814bfbb8d81389b50 (diff) | |
| download | brew-4c05d411f3345c083c933b3666229cd555162e0d.tar.bz2 | |
Add a method for getting the repo HEAD
Diffstat (limited to 'Library/Homebrew/tab.rb')
| -rw-r--r-- | Library/Homebrew/tab.rb | 6 |
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 |
