mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 13:39:47 -05:00
git: fix --HEAD builds to report proper version
For the GIT-VERSION-FILE scripts to work properly, it either needs to have $GIT_DIR pointing to the '.git' directory or find '.git' within the cwd. Further, for `git describe` to work correctly, we can't use a shallow clone (at least not one of depth 1), as it needs to find a tag within recent history. Closes #27227. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
1 parent
39e6c14758
commit
46b1bfe980
1 file changed
+3
-1
@@ -4,7 +4,7 @@ class Git < Formula
|
||||
homepage 'http://git-scm.com'
|
||||
url 'https://git-core.googlecode.com/files/git-1.9.0.tar.gz'
|
||||
sha1 'e60667fc16e5a5f1cde46616b0458cc802707743'
|
||||
head 'https://github.com/git/git.git'
|
||||
head 'https://github.com/git/git.git', :shallow => false
|
||||
|
||||
bottle do
|
||||
sha1 "78bb720052e624b889b7c39e47ec40e463fa13b0" => :mavericks
|
||||
@@ -60,6 +60,8 @@ class Git < Formula
|
||||
|
||||
ENV['NO_GETTEXT'] = '1' unless build.with? 'gettext'
|
||||
|
||||
ENV['GIT_DIR'] = cached_download/".git" if build.head?
|
||||
|
||||
system "make", "prefix=#{prefix}",
|
||||
"sysconfdir=#{etc}",
|
||||
"CC=#{ENV.cc}",
|
||||
|
||||
Reference in new issue
Block a user