Merge pull request #20599 from Homebrew/download_strategy-handle-tangled.sh-git
DownloadStrategyDetector: handle tangled.sh Git URLs
This commit is contained in:
commit
15f093c32b
@ -1616,6 +1616,7 @@ class DownloadStrategyDetector
|
|||||||
when %r{^https?://.+\.git$},
|
when %r{^https?://.+\.git$},
|
||||||
%r{^git://},
|
%r{^git://},
|
||||||
%r{^https?://git\.sr\.ht/[^/]+/[^/]+$},
|
%r{^https?://git\.sr\.ht/[^/]+/[^/]+$},
|
||||||
|
%r{^https?://tangled\.sh/[^/]+/[^/]+$},
|
||||||
%r{^ssh://git}
|
%r{^ssh://git}
|
||||||
GitDownloadStrategy
|
GitDownloadStrategy
|
||||||
when %r{^https?://www\.apache\.org/dyn/closer\.cgi},
|
when %r{^https?://www\.apache\.org/dyn/closer\.cgi},
|
||||||
|
@ -85,6 +85,9 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# TODO: Remove this exception for `lsr` after support for tangled.sh
|
||||||
|
# Git URLs is available in a brew release.
|
||||||
|
return if name == "lsr"
|
||||||
return if url_strategy != DownloadStrategyDetector.detect("", using)
|
return if url_strategy != DownloadStrategyDetector.detect("", using)
|
||||||
|
|
||||||
problem "Redundant `using:` value in URL"
|
problem "Redundant `using:` value in URL"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user