tests: fix cleanup after tests in t1509-root-worktree
commitfaacc5aa7c3d9c0695bf0203b55c4fd77cd5cda3
authorPatrick Steinhardt <ps@pks.im>
Wed, 5 Aug 2015 09:43:51 +0000 (5 11:43 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Aug 2015 20:00:04 +0000 (5 13:00 -0700)
tree597342ddbb7fd9e9db1b073f5b47b38e02092b86
parent24ca45f64cf90a91597a94c85a11a69d030e0389
tests: fix cleanup after tests in t1509-root-worktree

During cleanup we do a simple 'rm /*' to remove leftover files
from previous tests. As 'rm' errors out when there is anything it
cannot delete and there are directories present at '/' it will
throw an error, causing the '&&' chain to fail.

Fix this by explicitly removing the files.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1509-root-worktree.sh