Stop handling mysterious gh: prefix in remote URLs

This commit is contained in:
Katrina Verey
2023-01-06 16:53:52 -05:00
parent 7e6cc7aafb
commit 4821259f01
3 changed files with 6 additions and 10 deletions

View File

@@ -19,8 +19,6 @@ func TestNewRepoSpecFromUrl_Permute(t *testing.T) {
// we probably stil don't want to break backwards compatibility for things
// that are unintentionally supported.
var schemeAuthority = []struct{ raw, normalized string }{
{"gh:", "gh:"},
{"GH:", "gh:"},
{"gitHub.com/", "https://github.com/"},
{"github.com:", "https://github.com/"},
{"http://github.com/", "https://github.com/"},
@@ -126,6 +124,10 @@ func TestNewRepoSpecFromUrlErrors(t *testing.T) {
"git@https://github.com/org/repo.git//path",
"url lacks host",
},
"mysterious gh: prefix previously supported is no longer handled": {
"gh:org/repo",
"url lacks orgRepo",
},
}
for name, testCase := range badData {