]> git.ipfire.org Git - thirdparty/git.git/commit
t7064: use update-ref -d to remove upstream branch
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 2 Aug 2021 16:53:34 +0000 (16:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Aug 2021 20:17:21 +0000 (13:17 -0700)
commit2cf9f0fca1ad0fedb88f63f59b311b4d80b28f0e
tree396072dcb57aac341560e095f8ea1f0f3a3321dd
parentfe1443152689fcecbbaf0213a7bebcc23ee24a37
t7064: use update-ref -d to remove upstream branch

The previous code tested this by writing $ZERO_OID explicitly in the packed-refs
file. This is a type of corruption that doesn't reflect realistic use-cases. In
addition, even the ref-store test-tool refuses to write invalid OIDs.
(update-ref interprets $ZERO_OID is deleting the ref).

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7064-wtstatus-pv2.sh