diff options
| author | Martin Afanasjew | 2016-05-04 02:46:21 +0200 |
|---|---|---|
| committer | Martin Afanasjew | 2016-05-04 02:46:21 +0200 |
| commit | f653cb8340de3c9acd1ddfb75c1a8c8f3195834a (patch) | |
| tree | 4464c5fd1b63275a447a7f349a9e3c7b97b04f09 /Library/Homebrew/cmd | |
| parent | 7d57119837842c815ae0d681ade6866f88eaf788 (diff) | |
| download | brew-f653cb8340de3c9acd1ddfb75c1a8c8f3195834a.tar.bz2 | |
pull: fix references to renamed variable
Fix bug originating in #132.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/pull.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb index 14a7df5c9..6f7136cf8 100644 --- a/Library/Homebrew/cmd/pull.rb +++ b/Library/Homebrew/cmd/pull.rb @@ -175,10 +175,10 @@ module Homebrew orig_subject = message.empty? ? "" : message.lines.first.chomp bump_subject = subject_for_bump(formula, old_versions, new_versions) 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 - ohai "New bump commit subject: #{subject}" - pbcopy subject unless ARGV.include? "--no-pbcopy" + ohai "New bump commit subject: #{bump_subject}" + pbcopy bump_subject unless ARGV.include? "--no-pbcopy" message = "#{bump_subject}\n\n#{message}" end elsif bump_subject != orig_subject && !bump_subject.nil? |
