]> source.dussan.org Git - jgit.git/commitdiff
Write the bitmap index correctly in DFS GC. 10/10910/1
authorColby Ranger <cranger@google.com>
Wed, 6 Mar 2013 20:33:05 +0000 (12:33 -0800)
committerColby Ranger <cranger@google.com>
Wed, 6 Mar 2013 20:33:05 +0000 (12:33 -0800)
A bug caused the .bitmap to actually have the .idx contents.

Change-Id: I428bb27d419e8b1b69b6f3e2fd07cd29703669ad

org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsGarbageCollector.java

index db7a195e1583d3c2ec2bc0c9ec0e0dd044256dc7..6027eadc4255580c746f1bb1624f7e2258e2c059 100644 (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();