348fa749f3
The current series of fetch invocations in GitDownloadStrategy has the unfortunate behavior of fetching full history even in shallow clones that only need the history between the clone point and the remote HEAD. It should be possible to determine if it is actually necessary to fetch the full history, including all tags, and if it is not to avoid this overhead. Fixes Homebrew/homebrew#11958, and several other recurring problems. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
20 lines
594 B
Ruby
20 lines
594 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', :revision => 'HEAD'
|
|
|
|
depends_on 'asciidoc' => :build if ARGV.build_head?
|
|
|
|
def install
|
|
if ARGV.build_head?
|
|
ENV['GIT_DIR'] = cached_download/'.git'
|
|
inreplace 'make/gen-version.mk', '.git', '$(GIT_DIR)'
|
|
system "make"
|
|
end
|
|
system "make", "prefix=#{prefix}", "install"
|
|
end
|
|
end
|