From b6002b2e52db65387e41d26ea3b8e25c41385195 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 1 May 2012 18:03:36 -0500 Subject: Don't set GIT_DIR when staging git clones GIT_DIR is convenient, but it does not work when both a formula and subformula try to stage a git checkout, as git will use the main formula's repository when staging the subformula. Stop setting it, and restore the kludge to the git-multipush formula. Fixes #10893. Signed-off-by: Jack Nagel --- Library/Formula/git-multipush.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library/Formula') diff --git a/Library/Formula/git-multipush.rb b/Library/Formula/git-multipush.rb index 8ee3aa1c0..7ab88fd74 100644 --- a/Library/Formula/git-multipush.rb +++ b/Library/Formula/git-multipush.rb @@ -11,6 +11,7 @@ class GitMultipush < Formula def install if ARGV.build_head? + ENV['GIT_DIR'] = cached_location/'.git' inreplace 'make/gen-version.mk', '.git', '$(GIT_DIR)' system "make" end -- cgit v1.2.3