Handle git:: prefix in urls containing _git

This commit is contained in:
Richard Marshall
2019-07-29 10:44:44 -07:00
parent 5937bd0259
commit adbb6228a5
2 changed files with 9 additions and 3 deletions

View File

@@ -187,6 +187,12 @@ func TestNewRepoSpecFromUrl_CloneSpecs(t *testing.T) {
absPath: notCloned.Join("somedir"),
ref: "v1.0.0",
},
{
input: "git::https://itfs.mycompany.com/collection/project/_git/somerepos",
cloneSpec: "https://itfs.mycompany.com/collection/project/_git/somerepos",
absPath: notCloned.String(),
ref: "",
},
}
for _, testcase := range testcases {
rs, err := NewRepoSpecFromUrl(testcase.input)