brew-pull: only use matched string for url.

This commit is contained in:
Mike McQuaid 2010-12-30 16:30:00 +00:00
parent dc3623f5a6
commit 4cf099ecdf

View File

@ -23,7 +23,7 @@ HOMEBREW_REPOSITORY.cd do
end end
# GitHub provides commits'/pull-requests' raw patches using this URL. # 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. # The cache directory seems like a good place to put patches.
patchpath = (HOMEBREW_CACHE+File.basename(url)) patchpath = (HOMEBREW_CACHE+File.basename(url))