summaryrefslogtreecommitdiff
path: root/t/t6001-rev-list-graft.sh
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2021-08-02 16:53:36 +0000
committerJunio C Hamano <gitster@pobox.com>2021-08-02 13:17:21 -0700
commit977f8acefdbb5a7a39af52c82d21a9964f6ff7b0 (patch)
tree1e9a048b231dafaf9cf927bb0729fd91bfc45899 /t/t6001-rev-list-graft.sh
parentf95661b74088f019847ee8408c8ce82012089e2e (diff)
downloadgit-977f8acefdbb5a7a39af52c82d21a9964f6ff7b0.tar.gz
t6001: avoid direct file system access
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6001-rev-list-graft.sh')
-rwxr-xr-xt/t6001-rev-list-graft.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t6001-rev-list-graft.sh b/t/t6001-rev-list-graft.sh
index 90d93f77fa..7294147334 100755
--- a/t/t6001-rev-list-graft.sh
+++ b/t/t6001-rev-list-graft.sh
@@ -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 &&