git: do not apply patches on head

Closes Homebrew/homebrew#26259.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Francisco Souza 2014-01-29 16:47:59 -02:00 committed by Jack Nagel
parent 91ada349b2
commit bcb406185d

View file

@ -35,7 +35,7 @@ class Git < Formula
end
def patches
if MacOS.version >= :mavericks
if MacOS.version >= :mavericks and not build.head?
# Allow using PERLLIB_EXTRA to find Subversion Perl bindings location
# in the CLT/Xcode. Should be included in Git 1.8.6.
# https://git.kernel.org/cgit/git/git.git/commit/?h=next&id=07981d