Re: [PATCH 1/2] t3103: demonstrate dir.c:treat_one_path() core.ignorecase failure

2013-08-23 Thread Junio C Hamano
Eric Sunshine writes: > @@ -21,4 +22,18 @@ test_expect_success 'ls-tree fails with non-zero exit code > on broken tree' ' > test_must_fail git ls-tree -r HEAD > ' > > +test_expect_failure 'ls-tree directory core.ignorecase' ' > + cat >expect <<-\EOF && > + d/e/f > + EOF > +

[PATCH 1/2] t3103: demonstrate dir.c:treat_one_path() core.ignorecase failure

2013-08-22 Thread Eric Sunshine
2eac2a4cc4bdc8d7 (ls-files -k: a directory only can be killed if the index has a non-directory; 2013-08-15) adds a caller of directory_exists_in_index(dirname,len) which forgets to satisfy the undocumented requirement that a '/' must be present at dirname[len] (despite being past the end-of-string)