summaryrefslogtreecommitdiff
path: root/t/t1508-at-combinations.sh
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2014-01-10 12:10:31 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-01-10 15:30:45 -0800
commit0df49bef95fe1668805cdb76abadfb82a8956b6b (patch)
treee86161819d57cf7abdd8ba2af3aeb22fc118f0d1 /t/t1508-at-combinations.sh
parentdiff: add diff.orderfile configuration variable (diff)
downloadtgif-0df49bef95fe1668805cdb76abadfb82a8956b6b.tar.xz
diff test: reading a directory as a file need not error out
There is no guarantee that strbuf_read_file must error out for directories. On some operating systems (e.g., Debian GNU/kFreeBSD wheezy), reading a directory gives its raw content: $ head -c5 < / | cat -A ^AM-|^_^@^L$ As a result, 'git diff -O/' succeeds instead of erroring out on these systems, causing t4056.5 "orderfile is a directory" to fail. On some weird OS it might even make sense to pass a directory to the -O option and this is not a common user mistake that needs catching. Remove the test. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1508-at-combinations.sh')
0 files changed, 0 insertions, 0 deletions