diff options
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java index c3888d5397..1383045031 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java @@ -634,6 +634,9 @@ public abstract class BasePackFetchConnection extends BasePackConnection // Minimal negotiation was requested and we sent out our // current reference values for our wants, so terminate // negotiation early. + if (statelessRPC) { + state.writeTo(out, null); + } break SEND_HAVES; } break READ_RESULT; @@ -669,6 +672,9 @@ public abstract class BasePackFetchConnection extends BasePackConnection if (minimalNegotiationSet != null && minimalNegotiationSet.isEmpty()) { // Minimal negotiation was requested and we sent out our current reference // values for our wants, so terminate negotiation early. + if (statelessRPC) { + state.writeTo(out, null); + } break SEND_HAVES; } break; |