brew-pull: Fix detecting issue #
Fixes a regression introduced in c27a575eb6b2dfc0d662aaab2cf9d754647fbadd This is why I wish 1.8.x had named captures.
This commit is contained in:
parent
4dc1a7bdce
commit
3a4899ebbc
@ -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`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user