hub: make sure build scripts have access to Git data

The version script depends on having Git data to determine a version.

Closes Homebrew/homebrew#35258.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
E.J. Finneran 2014-12-25 15:25:39 -06:00 committed by Jack Nagel
parent 226cf15d9a
commit 2cc89757c9

View file

@ -14,6 +14,7 @@ class Hub < Formula
def install
if build.head?
ENV["GIT_DIR"] = cached_download/".git"
system "script/build"
bin.install "hub"
else