From 2f4c02e106187f79c2e4dbc3197bfa27c1c2a07d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 7 Mar 2015 15:34:43 +0000 Subject: [PATCH] pull: rename variable to avoid shadowing. --- Library/Homebrew/cmd/pull.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb index c2009cdd79..4cfcb30a2a 100644 --- a/Library/Homebrew/cmd/pull.rb +++ b/Library/Homebrew/cmd/pull.rb @@ -127,8 +127,8 @@ module Homebrew if ARGV.include? '--bump' odie 'Can only bump one changed formula' unless changed_formulae.length == 1 - f = changed_formulae.first - subject = "#{f.name} #{f.version}" + formula = changed_formulae.first + subject = "#{formula.name} #{formula.version}" ohai "New bump commit subject: #{subject}" system "/bin/echo -n #{subject} | pbcopy" message = "#{subject}\n\n#{message}"