diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java index 46f265f50..ace0d7be7 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java @@ -834,7 +834,6 @@ public Collection repack() throws IOException { Set allHeads = new HashSet<>(); Set allTags = new HashSet<>(); Set nonHeads = new HashSet<>(); - Set txnHeads = new HashSet<>(); Set tagTargets = new HashSet<>(); Set indexObjects = listNonHEADIndexObjects(); @@ -898,12 +897,6 @@ public Collection repack() throws IOException { if (rest != null) ret.add(rest); } - if (!txnHeads.isEmpty()) { - Pack txn = writePack(txnHeads, PackWriter.NONE, PackWriter.NONE, - PackWriter.NONE, null, excluded); - if (txn != null) - ret.add(txn); - } try { deleteOldPacks(toBeDeleted, ret); } catch (ParseException e) {