Commit 4ba54780 authored by Douwe Maan's avatar Douwe Maan

Cartfile git and binary methods cannot take a GitHub repo

parent d9f13db3
......@@ -6,14 +6,8 @@ module Gitlab
private
def link_dependencies
link_method_call(%w[github git binary]) do |value|
case value
when %r{\A#{REPO_REGEX}\z}
github_url(value)
when /\A#{URL_REGEX}\z/
value
end
end
link_method_call('github', REPO_REGEX, &method(:github_url))
link_method_call(%w[github git binary], URL_REGEX, &:itself)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment