aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))