From 1f103f88d09f996b666325a19fadf315d1e8a6ba Mon Sep 17 00:00:00 2001 From: Dario Vladovic Date: Sat, 7 Nov 2020 03:19:26 +0100 Subject: [PATCH] livecheck: enable git strategy for sourcehut --- Library/Homebrew/download_strategy.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 81dcf445fc..a2deeed57f 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -1225,7 +1225,8 @@ class DownloadStrategyDetector when %r{^https?://github\.com/[^/]+/[^/]+\.git$} GitHubGitDownloadStrategy when %r{^https?://.+\.git$}, - %r{^git://} + %r{^git://}, + %r{^https?://git\.sr\.ht/[^/]+/[^/]+$} GitDownloadStrategy when %r{^https?://www\.apache\.org/dyn/closer\.cgi}, %r{^https?://www\.apache\.org/dyn/closer\.lua}