Prevent repoSpec path from exiting repo

This commit is contained in:
Anna Song
2022-11-23 14:29:22 -08:00
parent 62f0dab2ac
commit 07063a2652
4 changed files with 38 additions and 0 deletions

View File

@@ -101,6 +101,10 @@ func TestNewRepoSpecFromUrlErrors(t *testing.T) {
"https://host?ref=group/version/minor_version",
"url lacks orgRepo",
},
"path_exits_repo": {
"https://github.com/org/repo.git//path/../../exits/repo",
"url path exits repo",
},
}
for name, testCase := range badData {