]> git.99rst.org Git - git.git/commit
reftable/stack: fix broken refnames in `write_n_ref_tables()`
authorPatrick Steinhardt <redacted>
Fri, 23 Aug 2024 14:12:46 +0000 (16:12 +0200)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
reftable/stack_test.c
git clone https://git.99rst.org/PROJECT