aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 3f94ccbd1..1e3070217 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -645,6 +645,8 @@ class CVSDownloadStrategy < VCSDownloadStrategy
if meta.key?(:module)
@module = meta.fetch(:module)
+ elsif @url !~ %r[:[^/]+$]
+ @module = name
else
@module, @url = split_url(@url)
end