aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-multipush.rb
diff options
context:
space:
mode:
authorJack Nagel2012-04-23 20:21:12 -0500
committerJack Nagel2012-05-01 21:46:42 -0500
commit7718c939b06987ff8f1ecd599c8ace6f998ce180 (patch)
tree492e87ae10859719dba5c00ec2678fc81b04a0db /Library/Formula/git-multipush.rb
parent853a8de5ea80f29303c787148f70a283f25ffc3b (diff)
downloadhomebrew-7718c939b06987ff8f1ecd599c8ace6f998ce180.tar.bz2
GitDownloadStrategy optimization
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 #11958, and several other recurring problems. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/git-multipush.rb')
-rw-r--r--Library/Formula/git-multipush.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/git-multipush.rb b/Library/Formula/git-multipush.rb
index 7ab88fd74..a6c70b4b7 100644
--- a/Library/Formula/git-multipush.rb
+++ b/Library/Formula/git-multipush.rb
@@ -5,13 +5,13 @@ class GitMultipush < Formula
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'
+ 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_location/'.git'
+ ENV['GIT_DIR'] = cached_download/'.git'
inreplace 'make/gen-version.mk', '.git', '$(GIT_DIR)'
system "make"
end