brew-pull: die when bumping multiple formulae.

This commit is contained in:
Mike McQuaid 2014-11-23 11:21:26 +00:00
parent 14c4c2fd67
commit c616fe737f

View File

@ -124,7 +124,7 @@ module Homebrew
message = `git log HEAD^.. --format=%B` message = `git log HEAD^.. --format=%B`
if ARGV.include? '--bump' if ARGV.include? '--bump'
onoe 'Can only bump one changed formula' unless changed_formulae.length == 1 odie 'Can only bump one changed formula' unless changed_formulae.length == 1
f = changed_formulae.first f = changed_formulae.first
subject = "#{f.name} #{f.version}" subject = "#{f.name} #{f.version}"
ohai "New bump commit subject: #{subject}" ohai "New bump commit subject: #{subject}"