-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(downloader): Support Git URLs with '.git' in domain
Signed-off-by: Timo Salmi <[email protected]>
- Loading branch information
1 parent
b590ad2
commit b0b1f7c
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -511,6 +511,10 @@ class VcsHostTest : WordSpec({ | |
VcsHost.getProject("ssh://[email protected]:group/project.git") shouldBe "project" | ||
} | ||
|
||
"work for a generic URL with .git twice to a Git repository" { | ||
VcsHost.getProject("ssh://[email protected]:group/project.git") shouldBe "project" | ||
} | ||
|
||
"handle an unknown URL" { | ||
VcsHost.fromUrl("https://host.tld/path/to/repo") should beNull() | ||
} | ||
|