]> source.dussan.org Git - jgit.git/commit
WalkFetchConnection: Remove marked packs on all function exits 56/1194856/4
authorIvan Frade <ifrade@google.com>
Thu, 16 May 2024 19:28:53 +0000 (12:28 -0700)
committerIvan Frade <ifrade@google.com>
Thu, 16 May 2024 20:57:42 +0000 (13:57 -0700)
commitcac835835d2e7789f2a01c03da83b44185668269
tree894704534d734141dca1425bc5c078619ca54e75
parentc704a40ebf75fed77097627d5719deeb16adf5fd
WalkFetchConnection: Remove marked packs on all function exits

[1] replaces Iterator.remove() with a list of "toRemove" that gets
processed when returning at the end. There are two others returns in
the function where the list is not processed.

Let the method report the broken packages and wrap it so the caller
can clean them up in any case.

[1] https://review.gerrithub.io/c/eclipse-jgit/jgit/+/1194812

Change-Id: I1ffb7829039f644df03b0b3ea1e5d10408ce19b7
org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkFetchConnection.java