]> source.dussan.org Git - jgit.git/commit
Add protocol v2 support in "jgit daemon" 54/119454/14
authorJonathan Tan <jonathantanmy@google.com>
Sat, 24 Feb 2018 00:55:03 +0000 (16:55 -0800)
committerJonathan Nieder <jrn@google.com>
Thu, 17 May 2018 00:58:31 +0000 (20:58 -0400)
commit2841bab938b823c47041adc98d3a24673fd57475
tree7d08c0096498b2609f4b3b66136defc5fe71417e
parent526f5cf9840490720f8b4fd6d647bb8beb67e143
Add protocol v2 support in "jgit daemon"

With this patch, a server spawned by "jgit daemon" can be accessed using
protocol v2 from a Git client that supports it (for example, "git" with
the appropriate patches). This is only activated if the repository's
config has "protocol.version" be 2.

This required a change to the package-private #execute methods in
DaemonService to allow passing of extra parameters.

This has been tested with a patched Git.

Change-Id: Icf043efec7ce956d72b075fc6dc7a87d5a2da82a
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/Daemon.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/DaemonClient.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/DaemonService.java