From 4cf099ecdfd9d3c12358daa590fab0c9bb4de59a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 30 Dec 2010 16:30:00 +0000 Subject: [PATCH] brew-pull: only use matched string for url. --- Library/Contributions/examples/brew-pull.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Contributions/examples/brew-pull.rb b/Library/Contributions/examples/brew-pull.rb index 41d8a671f1..70b37b9364 100755 --- a/Library/Contributions/examples/brew-pull.rb +++ b/Library/Contributions/examples/brew-pull.rb @@ -23,7 +23,7 @@ HOMEBREW_REPOSITORY.cd do end # GitHub provides commits'/pull-requests' raw patches using this URL. - url = arg + '.patch' + url = urlmatch[0] + '.patch' # The cache directory seems like a good place to put patches. patchpath = (HOMEBREW_CACHE+File.basename(url))