Commit 7aaf909
committed
DfsMidxWriter: Do not accept midx as input to build midx
We can use a midx to build a new midx, but it breaks the bitmaps. When
we calculate the "midx offsets" to order objects in the bitmap, we
assume each pack is a single pack (one packId).
Throw an exception if the input for the midx is another midx, until we
calculate properly the midx offsets.
Link: https://review.gerrithub.io/id/I325443dc3281003b29b4d8a1598b83316a6a69641 parent 02dc228 commit 7aaf909
File tree
1 file changed
+7
-0
lines changed- org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
| |||
0 commit comments