Skip to content
Snippets Groups Projects
Commit 2a61c84b authored by Mike McQuaid's avatar Mike McQuaid
Browse files

test-bot: handle inconsistent Jenkins GIT_URLs.

parent b3ed00b7
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,7 @@ module Homebrew
elsif ENV["GIT_BRANCH"] && ENV["GIT_URL"]
%r{origin/pr/(\d+)/(merge|head)} =~ ENV["GIT_BRANCH"]
pr = $1
@url = "#{ENV["GIT_URL"]}/pull/#{pr}"
@url = "#{ENV["GIT_URL"].chomp("/")}/pull/#{pr}"
@hash = nil
# Use Travis CI pull-request variables for pull request jobs.
elsif travis_pr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment