aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/git.rb')
-rw-r--r--Library/Formula/git.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb
index 1f659786a..feeabbfe3 100644
--- a/Library/Formula/git.rb
+++ b/Library/Formula/git.rb
@@ -30,6 +30,9 @@ class Git < Formula
ENV['NO_DARWIN_PORTS']='1'
ENV['V']='1' # build verbosely
+ # workaround for users of perlbrew
+ ENV['PERL_PATH'] = `/usr/bin/which perl`.chomp
+
# Clean XCode 4.x installs don't include Perl MakeMaker
ENV['NO_PERL_MAKEMAKER']='1' if MacOS.lion?