aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2010-12-30 16:30:00 +0000
committerMike McQuaid2010-12-30 16:30:50 +0000
commit4cf099ecdfd9d3c12358daa590fab0c9bb4de59a (patch)
treebaef1d1a4667651db70796cb6017fca98a19825e
parentdc3623f5a61216af9d0a811cb6c5618b666e2f98 (diff)
downloadbrew-4cf099ecdfd9d3c12358daa590fab0c9bb4de59a.tar.bz2
brew-pull: only use matched string for url.
-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))