]> source.dussan.org Git - jgit.git/commit
UploadPack v0: Extract "agent" client capability at parse time 49/131149/12
authorIvan Frade <ifrade@google.com>
Thu, 18 Oct 2018 17:54:14 +0000 (10:54 -0700)
committerIvan Frade <ifrade@google.com>
Mon, 22 Oct 2018 17:23:15 +0000 (10:23 -0700)
commit94a3d8bae9ff9a04e32ef5b82539ba70af0649bf
treea6ff890a2445a2934783d7c2863bad6af5125793
parent8d4f8d55d3d14b51983f951568a2f4e4ff64b324
UploadPack v0: Extract "agent" client capability at parse time

The request receives a list of capabilities and takes out the "agent" to
offer it on its own setter (getAgent).

Do this at parse time: when reading the line if the capability is
"agent" set it directly in the builder.

This makes the treatment of "agent" consistent in v0/v1 and v2.

Change-Id: Ie4f9f2cad8639adeeaef4921df49a30a8ce5b42f
Signed-off-by: Ivan Frade <ifrade@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/transport/parser/FirstWantTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/parser/FirstWant.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/FetchV0Request.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/ProtocolV0Parser.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java