read-tree: add tests for confusing paths like ".." and ".git"
commit96b50cc19003d54f5962d65597c94e2c52eb22e7
authorJeff King <peff@peff.net>
Mon, 24 Nov 2014 18:37:56 +0000 (24 13:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Dec 2014 19:00:37 +0000 (17 11:00 -0800)
tree6361ef36955ea7791d42e125275b7d3757f9e0ed
parent4616918013bf4fb3ce61175702d963a1fdd87f84
read-tree: add tests for confusing paths like ".." and ".git"

We should prevent nonsense paths from entering the index in
the first place, as they can cause confusing results if they
are ever checked out into the working tree. We already do
so, but we never tested it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1014-read-tree-confusing.sh [new file with mode: 0755]