From df70d960f871104250236fc264eb56db2b3d91aa Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 22 Dec 2014 00:43:02 -0500 Subject: [PATCH] Assume CVS module name when none is given --- Library/Homebrew/download_strategy.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 3f94ccbd15..1e3070217d 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