|
|
@ -279,9 +279,8 @@ public abstract class BasePackPushConnection extends BasePackConnection implemen |
|
|
|
Set<ObjectId> remoteObjects = new HashSet<ObjectId>(); |
|
|
|
Set<ObjectId> remoteObjects = new HashSet<ObjectId>(); |
|
|
|
Set<ObjectId> newObjects = new HashSet<ObjectId>(); |
|
|
|
Set<ObjectId> newObjects = new HashSet<ObjectId>(); |
|
|
|
|
|
|
|
|
|
|
|
final PackWriter writer = new PackWriter(transport.getPackConfig(), |
|
|
|
try (final PackWriter writer = new PackWriter(transport.getPackConfig(), |
|
|
|
local.newObjectReader()); |
|
|
|
local.newObjectReader())) { |
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (final Ref r : getRefs()) { |
|
|
|
for (final Ref r : getRefs()) { |
|
|
|
// only add objects that we actually have
|
|
|
|
// only add objects that we actually have
|
|
|
@ -303,10 +302,9 @@ public abstract class BasePackPushConnection extends BasePackConnection implemen |
|
|
|
writer.setDeltaBaseAsOffset(capableOfsDelta); |
|
|
|
writer.setDeltaBaseAsOffset(capableOfsDelta); |
|
|
|
writer.preparePack(monitor, newObjects, remoteObjects); |
|
|
|
writer.preparePack(monitor, newObjects, remoteObjects); |
|
|
|
writer.writePack(monitor, monitor, out); |
|
|
|
writer.writePack(monitor, monitor, out); |
|
|
|
} finally { |
|
|
|
|
|
|
|
writer.release(); |
|
|
|
packTransferTime = writer.getStatistics().getTimeWriting(); |
|
|
|
} |
|
|
|
} |
|
|
|
packTransferTime = writer.getStatistics().getTimeWriting(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void readStatusReport(final Map<String, RemoteRefUpdate> refUpdates) |
|
|
|
private void readStatusReport(final Map<String, RemoteRefUpdate> refUpdates) |
|
|
|