diff options
Diffstat (limited to '')
| -rwxr-xr-x | tests/t0111-atom.sh | 9 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 9 insertions, 0 deletions
diff --git a/tests/t0111-atom.sh b/tests/t0111-atom.sh index 6ffb5b0..48448ef 100755 --- a/tests/t0111-atom.sh +++ b/tests/t0111-atom.sh @@ -59,4 +59,13 @@ test_expect_success XMLLINT 'the feed is well-formed xml' ' xmllint --noout feed ' +# A path starting with a colon would reach git as pathspec magic, which the +# log refuses as well. +test_expect_success 'a path with pathspec magic is refused' ' + cgit_url "foo/atom/%3A%28icase%29FILE-1" >tmp && + grep "^Status: 400" tmp && + cgit_url "foo/atom/file-1" >tmp && + grep "^Status: 200" tmp +' + test_done |
