]> git.ipfire.org Git - thirdparty/git.git/commit
t5541: remove lockfile creation
authorJustin Tobler <jltobler@gmail.com>
Thu, 11 Jan 2024 20:24:30 +0000 (20:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jan 2024 17:56:56 +0000 (09:56 -0800)
commitacf8ea23afec3e42f0644dc1cdf66043b06bf3eb
tree2d2b01bf9fdd5181c488750fb0ddbbff176a774e
parenta26f1fb62bef37865dc18e010f9804172980c682
t5541: 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-update-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/t5541-http-push-smart.sh