|
|
@ -684,6 +684,8 @@ public class UploadPack { |
|
|
|
|
|
|
|
|
|
|
|
if (depth != 0) |
|
|
|
if (depth != 0) |
|
|
|
processShallow(); |
|
|
|
processShallow(); |
|
|
|
|
|
|
|
if (!clientShallowCommits.isEmpty()) |
|
|
|
|
|
|
|
walk.assumeShallow(clientShallowCommits); |
|
|
|
sendPack = negotiate(); |
|
|
|
sendPack = negotiate(); |
|
|
|
} catch (PackProtocolException err) { |
|
|
|
} catch (PackProtocolException err) { |
|
|
|
reportErrorDuringNegotiate(err.getMessage()); |
|
|
|
reportErrorDuringNegotiate(err.getMessage()); |
|
|
@ -756,7 +758,7 @@ public class UploadPack { |
|
|
|
|
|
|
|
|
|
|
|
// Commits not on the boundary which are shallow in the client
|
|
|
|
// Commits not on the boundary which are shallow in the client
|
|
|
|
// need to become unshallowed
|
|
|
|
// need to become unshallowed
|
|
|
|
if (c.getDepth() < depth && clientShallowCommits.contains(c)) { |
|
|
|
if (c.getDepth() < depth && clientShallowCommits.remove(c)) { |
|
|
|
unshallowCommits.add(c.copy()); |
|
|
|
unshallowCommits.add(c.copy()); |
|
|
|
pckOut.writeString("unshallow " + c.name()); //$NON-NLS-1$
|
|
|
|
pckOut.writeString("unshallow " + c.name()); //$NON-NLS-1$
|
|
|
|
} |
|
|
|
} |
|
|
@ -1350,7 +1352,7 @@ public class UploadPack { |
|
|
|
try { |
|
|
|
try { |
|
|
|
pw.setIndexDisabled(true); |
|
|
|
pw.setIndexDisabled(true); |
|
|
|
pw.setUseCachedPacks(true); |
|
|
|
pw.setUseCachedPacks(true); |
|
|
|
pw.setUseBitmaps(true); |
|
|
|
pw.setUseBitmaps(depth == 0 && clientShallowCommits.isEmpty()); |
|
|
|
pw.setReuseDeltaCommits(true); |
|
|
|
pw.setReuseDeltaCommits(true); |
|
|
|
pw.setDeltaBaseAsOffset(options.contains(OPTION_OFS_DELTA)); |
|
|
|
pw.setDeltaBaseAsOffset(options.contains(OPTION_OFS_DELTA)); |
|
|
|
pw.setThin(options.contains(OPTION_THIN_PACK)); |
|
|
|
pw.setThin(options.contains(OPTION_THIN_PACK)); |
|
|
|