aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorE.J. Finneran2014-12-25 15:25:39 -0600
committerJack Nagel2014-12-26 11:38:15 -0500
commit89f93423f4657d87c155bde83af9af0d765dd87d (patch)
tree01516608ccb1b28126d98e474b01f535de94f3bc /Library/Formula
parent70ead9e081e54700713eedeebcc9697432e0dffb (diff)
downloadhomebrew-89f93423f4657d87c155bde83af9af0d765dd87d.tar.bz2
hub: make sure build scripts have access to Git data
The version script depends on having Git data to determine a version. Closes #35258. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/hub.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/hub.rb b/Library/Formula/hub.rb
index 76e4e6e7c..9b9de5d03 100644
--- a/Library/Formula/hub.rb
+++ b/Library/Formula/hub.rb
@@ -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