]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5702-protocol-v2.sh
t: convert tests to not access symrefs via the filesystem
authorPatrick Steinhardt <ps@pks.im>
Thu, 2 Nov 2023 08:46:49 +0000 (09:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Nov 2023 23:37:06 +0000 (08:37 +0900)
commit239371168173da9a9556617fced1e053ac618a85
treea1477b7e865be87a040c01be3cf5eaadfb699432
parent1c6667cb9dab6f90dcc3381676b50b1f131aeda5
t: convert tests to not access symrefs via the filesystem

Some of our tests access symbolic references via the filesystem
directly. While this works with the current files reference backend, it
this will break once we have a second reference backend in our codebase.

Refactor these tests to instead use git-symbolic-ref(1) or our
`ref-store` test tool. The latter is required in some cases where safety
checks of git-symbolic-ref(1) would otherwise reject writing a symbolic
reference.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1400-update-ref.sh
t/t1430-bad-ref-name.sh
t/t1450-fsck.sh
t/t3200-branch.sh
t/t4013-diff-various.sh
t/t4202-log.sh
t/t5605-clone-local.sh
t/t5702-protocol-v2.sh
t/t9133-git-svn-nested-git-repo.sh