]> git.99rst.org Git - git.git/commitdiff
t6001: avoid direct file system access
authorHan-Wen Nienhuys <redacted>
Mon, 2 Aug 2021 16:53:36 +0000 (16:53 +0000)
committerJunio C Hamano <redacted>
Mon, 2 Aug 2021 20:17:21 +0000 (13:17 -0700)
Signed-off-by: Han-Wen Nienhuys <redacted>
Signed-off-by: Junio C Hamano <redacted>
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 &&
git clone https://git.99rst.org/PROJECT