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 Homebrew/homebrew#10893.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-05-01 18:03:36 -05:00
parent 995186a72c
commit b1d490cbed

View File

@ -393,7 +393,6 @@ class GitDownloadStrategy < AbstractDownloadStrategy
safe_system 'git', 'submodule', '--quiet', 'foreach', '--recursive', sub_cmd safe_system 'git', 'submodule', '--quiet', 'foreach', '--recursive', sub_cmd
end end
end end
ENV['GIT_DIR'] = cached_location+'.git'
end end
end end