pull: fix references to renamed variable

Fix bug originating in #132.
This commit is contained in:
Martin Afanasjew 2016-05-04 02:46:21 +02:00
parent 7d57119837
commit f653cb8340

View File

@ -175,10 +175,10 @@ module Homebrew
orig_subject = message.empty? ? "" : message.lines.first.chomp orig_subject = message.empty? ? "" : message.lines.first.chomp
bump_subject = subject_for_bump(formula, old_versions, new_versions) bump_subject = subject_for_bump(formula, old_versions, new_versions)
if do_bump if do_bump
odie "No version changes found for #{formula.name}" if subject.nil? odie "No version changes found for #{formula.name}" if bump_subject.nil?
unless orig_subject == bump_subject unless orig_subject == bump_subject
ohai "New bump commit subject: #{subject}" ohai "New bump commit subject: #{bump_subject}"
pbcopy subject unless ARGV.include? "--no-pbcopy" pbcopy bump_subject unless ARGV.include? "--no-pbcopy"
message = "#{bump_subject}\n\n#{message}" message = "#{bump_subject}\n\n#{message}"
end end
elsif bump_subject != orig_subject && !bump_subject.nil? elsif bump_subject != orig_subject && !bump_subject.nil?