Skip to content

Commit

Permalink
git: use build.with?.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Mar 2, 2013
1 parent 9df1d8b commit 054d924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def install
# Clean XCode 4.x installs don't include Perl MakeMaker
ENV['NO_PERL_MAKEMAKER'] = '1' if MacOS.version >= :lion

ENV['BLK_SHA1'] = '1' if build.include? 'with-blk-sha1'
ENV['BLK_SHA1'] = '1' if build.with? 'blk-sha1'

if build.with? 'pcre'
ENV['USE_LIBPCRE'] = '1'
Expand Down Expand Up @@ -65,7 +65,7 @@ def install
bin.install 'git-subtree'
end

unless build.include? 'without-completions'
unless build.without? 'completions'
# install the completion script first because it is inside 'contrib'
bash_completion.install 'contrib/completion/git-completion.bash'
bash_completion.install 'contrib/completion/git-prompt.sh'
Expand Down

0 comments on commit 054d924

Please sign in to comment.