t3600: test behavior of reverse-d/f conflict
authorJeff King <peff@peff.net>
Thu, 4 Apr 2013 19:03:58 +0000 (15:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Apr 2013 19:28:53 +0000 (12:28 -0700)
The previous commit taught "rm" that it is safe to consider
"d/f" removed when "d" has become a non-directory. This
patch adds a test for the opposite: a file "d" that becomes
a directory.

In this case, "git rm" does need to complain, because we
should not be removing arbitrary content under "d". Git
already behaves correctly, but let's make sure that remains
the case by protecting the behavior with a test.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found