]> source.dussan.org Git - jgit.git/commit
Send only 1 flush pkt at the end of v2 fetch 80/126580/1
authorJonathan Tan <jonathantanmy@google.com>
Tue, 24 Jul 2018 22:35:16 +0000 (15:35 -0700)
committerJonathan Tan <jonathantanmy@google.com>
Tue, 24 Jul 2018 22:39:32 +0000 (15:39 -0700)
commit7e7b00f1a5d14ceca62fd18c6e11456fc9eddd21
treebe55a305f78c8ba7e44620332c3fb6f6943e2a69
parent280707b0fc717fdd8898242f21589f0c7c7d87be
Send only 1 flush pkt at the end of v2 fetch

When processing a fetch using protocol v2, UploadPack#fetchV2 sends an
extraneous flush pkt when also sending a packfile (#sendPack sending its
own flush pkt). Update that method to only send the flush pkt if the
packfile is not being sent.

Change-Id: I7117a264bccd2d7f3a048645fcb8425a9d78d526
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java