From 3a4899ebbc962b8d3e0c7c59c0304ff84993c759 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 11 Apr 2012 10:17:24 -0500 Subject: brew-pull: Fix detecting issue # Fixes a regression introduced in c27a575eb6b2dfc0d662aaab2cf9d754647fbadd This is why I wish 1.8.x had named captures. --- Library/Contributions/cmds/brew-pull.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Contributions/cmds/brew-pull.rb b/Library/Contributions/cmds/brew-pull.rb index f17ecdbc7..5f4c1d2c0 100755 --- a/Library/Contributions/cmds/brew-pull.rb +++ b/Library/Contributions/cmds/brew-pull.rb @@ -53,7 +53,7 @@ ARGV.named.each do|arg| safe_system 'git', *patch_args - issue = arg.to_i > 0 ? arg.to_i : url_match[2] + issue = arg.to_i > 0 ? arg.to_i : url_match[3] if issue and not ARGV.include? '--clean' ohai "Patch closes issue ##{issue}" message = `git log HEAD^.. --format=%B` -- cgit v1.2.3