Enable serving upload requests using bitmaps.
If the pack index has bitmaps, allow the PackWriter to use the bitmaps for upload requests. Change-Id: Iefa995fe927a11e4fd78afb34530995614221fc0
This commit is contained in:
parent
dafcb8f6db
commit
43ea887c8b
|
@ -277,6 +277,7 @@ private void writePack(final Map<String, RemoteRefUpdate> refUpdates,
|
|||
}
|
||||
|
||||
writer.setUseCachedPacks(true);
|
||||
writer.setUseBitmaps(true);
|
||||
writer.setThin(thinPack);
|
||||
writer.setReuseValidatingObjects(false);
|
||||
writer.setDeltaBaseAsOffset(capableOfsDelta);
|
||||
|
|
|
@ -1137,6 +1137,7 @@ private void sendPack(final boolean sideband) throws IOException {
|
|||
final PackWriter pw = new PackWriter(cfg, walk.getObjectReader());
|
||||
try {
|
||||
pw.setUseCachedPacks(true);
|
||||
pw.setUseBitmaps(true);
|
||||
pw.setReuseDeltaCommits(true);
|
||||
pw.setDeltaBaseAsOffset(options.contains(OPTION_OFS_DELTA));
|
||||
pw.setThin(options.contains(OPTION_THIN_PACK));
|
||||
|
|
Loading…
Reference in New Issue