aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2010-12-30 16:30:00 +0000
committerMike McQuaid2010-12-30 16:30:50 +0000
commitfff7e1ca18ac36c0b746496ffae6a173a62c7933 (patch)
treec4f14f18d0af69f828d8b6cdd80c1958208682c6 /Library
parentb7fab6cb4038a324e3bad530a56e436b2f50d40c (diff)
downloadhomebrew-fff7e1ca18ac36c0b746496ffae6a173a62c7933.tar.bz2
brew-pull: only use matched string for url.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-pull.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/examples/brew-pull.rb b/Library/Contributions/examples/brew-pull.rb
index 41d8a671f..70b37b936 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))