Fix subgroup parsing on subsequent installs (#93)

* Fix subgroup parsing on subsequent installs

* enforce .git as remote suffix

* fix integration tests

* do not modify pointer receiver in getters

* fix merged integration tests
This commit is contained in:
Dominik Süß 2020-05-06 20:40:34 +02:00 committed by GitHub
parent d78a05a86f
commit 50b717beab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 28 deletions

View file

@ -53,7 +53,7 @@ func TestParseGit(t *testing.T) {
Subdir: "/ksonnet.beta.3",
}},
},
wantRemote: "https://github.com/ksonnet/ksonnet-lib",
wantRemote: "https://github.com/ksonnet/ksonnet-lib.git",
},
{
name: "ssh.ssh",
@ -82,7 +82,7 @@ func TestParseGit(t *testing.T) {
},
},
},
wantRemote: "https://example.com/foo/bar",
wantRemote: "https://example.com/foo/bar.git",
},
{
name: "ValidGitNoScheme",
@ -99,7 +99,7 @@ func TestParseGit(t *testing.T) {
},
},
},
wantRemote: "https://example.com/foo/bar",
wantRemote: "https://example.com/foo/bar.git",
},
{
name: "ValidGitPath",
@ -116,7 +116,7 @@ func TestParseGit(t *testing.T) {
},
},
},
wantRemote: "https://example.com/foo/bar",
wantRemote: "https://example.com/foo/bar.git",
},
{
name: "ValidGitVersion",
@ -133,7 +133,7 @@ func TestParseGit(t *testing.T) {
},
},
},
wantRemote: "https://example.com/foo/bar",
wantRemote: "https://example.com/foo/bar.git",
},
{
name: "ValidGitPathVersion",
@ -150,7 +150,7 @@ func TestParseGit(t *testing.T) {
},
},
},
wantRemote: "https://example.com/foo/bar",
wantRemote: "https://example.com/foo/bar.git",
},
{
name: "ValidGitSubdomain",
@ -167,7 +167,7 @@ func TestParseGit(t *testing.T) {
},
},
},
wantRemote: "https://git.example.com/foo/bar",
wantRemote: "https://git.example.com/foo/bar.git",
},
{
name: "ValidGitSubgroups",
@ -184,7 +184,7 @@ func TestParseGit(t *testing.T) {
},
},
},
wantRemote: "https://example.com/group/subgroup/repository",
wantRemote: "https://example.com/group/subgroup/repository.git",
},
{
name: "ValidGitSubgroupSubDir",
@ -201,7 +201,7 @@ func TestParseGit(t *testing.T) {
},
},
},
wantRemote: "https://example.com/group/subgroup/repository",
wantRemote: "https://example.com/group/subgroup/repository.git",
},
}