]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t6001: avoid direct file system access
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 2 Aug 2021 16:53:36 +0000 (16:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Aug 2021 20:17:21 +0000 (13:17 -0700)
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6001-rev-list-graft.sh

index 90d93f77fa79c2694ebd9b2229c8620859e6a36a..7294147334a92e6be082ad57177adb6e0857facc 100755 (executable)
@@ -23,7 +23,8 @@ test_expect_success setup '
        git commit -a -m "Third in one history." &&
        A2=$(git rev-parse --verify HEAD) &&
 
-       rm -f .git/refs/heads/main .git/index &&
+       git update-ref -d refs/heads/main &&
+       rm -f .git/index &&
 
        echo >fileA fileA again &&
        echo >subdir/fileB fileB again &&