Skip to content

Commit faacc5a

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 24ca45f commit faacc5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1509-root-worktree.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ say "auto bare gitdir"
242242
# DESTROYYYYY!!!!!
243243
test_expect_success 'setup' '
244244
rm -rf /refs /objects /info /hooks &&
245-
rm /* &&
245+
rm -f /expected /ls.expected /me /result &&
246246
cd / &&
247247
echo "Initialized empty Git repository in /" > expected &&
248248
git init --bare > result &&

0 commit comments

Comments
 (0)