Community
Participate
Working Groups
Setup: 1. Create a bare repository with a branch named 'to_be_removed' 2. Pack all refs in the repository 3. Ensure packed-refs contains 'to_be_removed' Steps to reproduce: 1. Use PackedBatchRefUpdate to write a new branch named 'new' to packed-refs directly 2. Use an IDE debugger and stop the execution at step where applyUpdates() is called in PackedBatchRefUpdate.execute(). 3. Delete 'to_be_removed' from packed-refs using a cmd like 'git update-ref -d to_be_removed'. Ensure that packed-refs does not contain it. 4. Resume the debugger and let it finish writing the 'new' ref 5. The updated packed-refs with 'new' ref, now erroneously also contains 'to_be_removed', despite it being deleted in [3].
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/200220 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=47f2f3613c222c21b47b031316414e09a66c8a0c