aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/cmd
diff options
context:
space:
mode:
authorMike McQuaid2013-06-02 12:48:57 +0100
committerMike McQuaid2013-06-02 12:49:37 +0100
commitbec7ff9807d73bf2ac641dfa3d46abeae0b9eccc (patch)
treec1991e91236fa1f89f50b180ec77a0b8d8df3189 /Library/Contributions/cmd
parenta886a1b3e373b1ff8e986e52fa0aca14972f20e5 (diff)
downloadbrew-bec7ff9807d73bf2ac641dfa3d46abeae0b9eccc.tar.bz2
Update pull request regex name to include commits.
Diffstat (limited to 'Library/Contributions/cmd')
-rwxr-xr-xLibrary/Contributions/cmd/brew-pull.rb2
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-pull.rb b/Library/Contributions/cmd/brew-pull.rb
index 6a055f77b..521df766b 100755
--- a/Library/Contributions/cmd/brew-pull.rb
+++ b/Library/Contributions/cmd/brew-pull.rb
@@ -21,7 +21,7 @@ ARGV.named.each do|arg|
if arg.to_i > 0
url = 'https://github.com/mxcl/homebrew/pull/' + arg
else
- url_match = arg.match HOMEBREW_PULL_URL_REGEX
+ url_match = arg.match HOMEBREW_PULL_OR_COMMIT_URL_REGEX
unless url_match
ohai 'Ignoring URL:', "Not a GitHub pull request or commit: #{arg}"
next
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index cbd05d185..caee05395 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -106,7 +106,7 @@ class Test
@url = nil
@formulae = []
- url_match = argument.match HOMEBREW_PULL_URL_REGEX
+ url_match = argument.match HOMEBREW_PULL_OR_COMMIT_URL_REGEX
formula = Formula.factory argument rescue FormulaUnavailableError
git "rev-parse --verify #{argument} &>/dev/null"
if $?.success?