t6001: avoid direct file system access

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Han-Wen Nienhuys committed Aug 2, 2021 at 16:53 UTC 977f8acefdbb5a7a39af52c82d21a9964f6ff7b0
1 file changed +2 -1
t/t6001-rev-list-graft.sh
+2 -1
@@ -23,7 +23,8 @@ test_expect_success setup '
23 git commit -a -m "Third in one history." &&
24 A2=$(git rev-parse --verify HEAD) &&
25
26 - rm -f .git/refs/heads/main .git/index &&
26 + git update-ref -d refs/heads/main &&
27 + rm -f .git/index &&
28
29 echo >fileA fileA again &&
30 echo >subdir/fileB fileB again &&