]> git.ipfire.org Git - thirdparty/git.git/commit
t1401: remove lockfile creation
authorJustin Tobler <jltobler@gmail.com>
Thu, 11 Jan 2024 20:24:29 +0000 (20:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jan 2024 17:56:47 +0000 (09:56 -0800)
commita26f1fb62bef37865dc18e010f9804172980c682
tree34b9428e3d348ca86744783f047083552539d84f
parenta54a84b333adbecf7bc4483c0e36ed5878cac17b
t1401: remove lockfile creation

To create error conditions, some tests set up reference locks by
directly creating its lockfile. While this works for the files reference
backend, this approach is incompatible with the reftable backend.
Refactor the test to create a d/f conflict via git-symbolic-ref(1)
instead so that the test is reference backend agnostic.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1401-symbolic-ref.sh