]> source.dussan.org Git - jgit.git/commit
FirstWant: Parse client session-id if received. 65/196565/7
authorJosh Brown <sjoshbrown@google.com>
Tue, 1 Nov 2022 18:16:44 +0000 (18:16 +0000)
committerJosh Brown <sjoshbrown@google.com>
Wed, 2 Nov 2022 20:12:03 +0000 (20:12 +0000)
commite8068188f134b2b6a0d96314a3642154a1b66ab4
treefb3e01eeb84a2e5ac1ef8d1e7da81a4df5e0d121
parent93097f001854af47db782462e78d67e7171043a4
FirstWant: Parse client session-id if received.

In protocol V0 the client capabilities are appended to the first line.
Parsing session-id is currently only supported during a ReceivePack
operation. This change will parse the client session-id capability if
it has been sent by the client.

If the server sends the session-id capability to the client. The client
may respond with a session ID of its own. FirstWant.fromLine will now
parse the ID and make it available via the getClientSID method.

This change does not add support to send the session-id capability from
the server. The change is necessary to support session-id in UploadPack.

Change-Id: Id3fe44fdf9a72984ee3de9cf40cc4e71d434df4a
Signed-off-by: Josh Brown <sjoshbrown@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