]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/stack: fix broken refnames in `write_n_ref_tables()`
authorPatrick Steinhardt <ps@pks.im>
Fri, 23 Aug 2024 14:12:46 +0000 (16:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Aug 2024 15:04:47 +0000 (08:04 -0700)
commit4ac2fd9b4aabe72f8bc652b71d2fcd9d952e8093
treee6129247772348240bee643c6e4769f981983b4d
parent00e130a6bb3535de2a1a5f96640a8723fef09c87
reftable/stack: fix broken refnames in `write_n_ref_tables()`

The `write_n_ref_tables()` helper function writes N references in
separate tables. We never reset the computed name of those references
though, leading us to end up with unexpected names.

Fix this by resetting the buffer.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/stack_test.c