summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColby Ranger <cranger@google.com>2013-03-06 12:33:05 -0800
committerColby Ranger <cranger@google.com>2013-03-06 12:33:05 -0800
commitc660362768ab5e8194f53f529422bbfaa60de2a1 (patch)
treefdaf49d5c68abc3eb6575a2e63846a716e687b80
parente6883dfe4b0f16c84e31285cc1c9b9e6ca157463 (diff)
downloadjgit-c660362768ab5e8194f53f529422bbfaa60de2a1.tar.gz
jgit-c660362768ab5e8194f53f529422bbfaa60de2a1.zip
Write the bitmap index correctly in DFS GC.
A bug caused the .bitmap to actually have the .idx contents. Change-Id: I428bb27d419e8b1b69b6f3e2fd07cd29703669ad
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsGarbageCollector.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsGarbageCollector.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsGarbageCollector.java
index db7a195e15..6027eadc42 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsGarbageCollector.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsGarbageCollector.java
@@ -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();