Browse Source

Write the bitmap index correctly in DFS GC.

A bug caused the .bitmap to actually have the .idx contents.

Change-Id: I428bb27d419e8b1b69b6f3e2fd07cd29703669ad
tags/v3.0.0.201305080800-m7
Colby Ranger 11 years ago
parent
commit
c660362768

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsGarbageCollector.java View File

@@ -339,7 +339,7 @@ public class DfsGarbageCollector {
out = objdb.writeFile(pack, BITMAP_INDEX);
try {
CountingOutputStream cnt = new CountingOutputStream(out);
pw.writeIndex(cnt);
pw.writeBitmapIndex(cnt);
pack.setFileSize(BITMAP_INDEX, cnt.getCount());
} finally {
out.close();

Loading…
Cancel
Save