快速解决方法:
履行
brew edit git
然后放
url 'https://github.com/git/git/tarball/v1.7.6.1'
md5 'ab731cf9b99529f3f8d126aa15d9a1cd'
代替
url 'http://kernel.org/pub/software/scm/git/git-1.7.6.1.tar.bz2'
md5 'd1e00772cc9dc6c571999feb9e8771ab'
也放
url 'http://ftp.uk.freesbie.org/sites/ftp.kernel.org/pub/software/scm/git-core/git-manpages-1.7.6.1.tar.bz2
而不是
url 'http://kernel.org/pub/software/scm/git/git-manpages-1.7.6.1.tar.bz2'
还有放
url 'http://ftp.ntu.edu.tw/ftp/pub2/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'
而不是
url 'http://kernel.org/pub/software/scm/git/git-htmldocs-1.7.6.1.tar.bz2'
保存,然后输入brew install git。
当 Linus 完成 kernelorg 的维护后,您可以恢复所有这些更改。
更新:
还为 htmldocs 添加了镜像。感谢找到该网址的 Tadashi Shigeoka。
更新:
最近的自制版本包含镜像,因此您无需使用此 hack。