mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 08:00:05 +01:00
fix: allow dots in a repository path's "user" section (#106)
GitLab uses "first.last" naming for personal Groups. This fixes the ability to reference personal GitLab projects with jb.
This commit is contained in:
parent
447344d5a0
commit
251792fbb2
2 changed files with 19 additions and 2 deletions
|
|
@ -84,6 +84,23 @@ func TestParseGit(t *testing.T) {
|
|||
},
|
||||
wantRemote: "https://example.com/foo/bar.git",
|
||||
},
|
||||
{
|
||||
name: "ValidGitLabUserGroupHTTPS",
|
||||
uri: "https://gitlab.example.com/first.last/project",
|
||||
want: &Dependency{
|
||||
Version: "master",
|
||||
Source: Source{
|
||||
GitSource: &Git{
|
||||
Scheme: GitSchemeHTTPS,
|
||||
Host: "gitlab.example.com",
|
||||
User: "first.last",
|
||||
Repo: "project",
|
||||
Subdir: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
wantRemote: "https://gitlab.example.com/first.last/project.git",
|
||||
},
|
||||
{
|
||||
name: "ValidGitNoScheme",
|
||||
uri: "example.com/foo/bar",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue