mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 08:00:05 +01:00
Support Bitbucket personal repositories
This commit is contained in:
parent
6bb2d1af6c
commit
bc013f1e6c
2 changed files with 19 additions and 2 deletions
|
|
@ -220,6 +220,23 @@ func TestParseGit(t *testing.T) {
|
|||
},
|
||||
wantRemote: "https://example.com/group/subgroup/repository.git",
|
||||
},
|
||||
{
|
||||
name: "ValidBitbucketPersonalRepository",
|
||||
uri: "bitbucket.org/~user/repository.git",
|
||||
want: &Dependency{
|
||||
Version: "master",
|
||||
Source: Source{
|
||||
GitSource: &Git{
|
||||
Scheme: GitSchemeHTTPS,
|
||||
Host: "bitbucket.org",
|
||||
User: "~user",
|
||||
Repo: "repository",
|
||||
Subdir: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
wantRemote: "https://bitbucket.org/~user/repository.git",
|
||||
},
|
||||
}
|
||||
|
||||
for _, c := range tests {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue