homebrew-core/Formula/git-multipush.rb
Jack Nagel cf4cf32deb 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>
2012-05-01 18:07:58 -05:00

20 lines
589 B
Ruby

require 'formula'
class GitMultipush < Formula
homepage 'http://code.google.com/p/git-multipush/'
url 'http://git-multipush.googlecode.com/files/git-multipush-2.3.tar.bz2'
sha1 'a53f171af5e794afe9b1de6ccd9bd0661db6fd91'
head 'https://github.com/gavinbeatty/git-multipush.git', :sha => 'HEAD'
depends_on 'asciidoc' => :build if ARGV.build_head?
def install
if ARGV.build_head?
ENV['GIT_DIR'] = cached_location/'.git'
inreplace 'make/gen-version.mk', '.git', '$(GIT_DIR)'
system "make"
end
system "make", "prefix=#{prefix}", "install"
end
end