Skip to content
Snippets Groups Projects
Commit 184c80b1 authored by Markus Reiter's avatar Markus Reiter
Browse files

Improve detection of GitLab tag.

parent 1858dab3
No related branches found
No related tags found
No related merge requests found
......@@ -784,8 +784,14 @@ module Homebrew
owner = Regexp.last_match(1)
repo = Regexp.last_match(2)
tag = url.match(%r{^https://gitlab\.com/[\w-]+/[\w-]+/-/archive/([^/]+)/})
.to_a
.second
tag ||= stable.specs[:tag]
tag ||= stable.version
if @online
error = SharedAudits.gitlab_release(owner, repo, stable.version, formula: formula)
error = SharedAudits.gitlab_release(owner, repo, tag, formula: formula)
problem error if error
end
when %r{^https://github.com/([\w-]+)/([\w-]+)}
......
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