]> source.dussan.org Git - jgit.git/commit
UploadPack: Use reachable-sha1-in-want configuration 52/49652/2
authorFredrik Medley <fredrik.medley@gmail.com>
Fri, 29 May 2015 18:04:50 +0000 (20:04 +0200)
committerFredrik Medley <fredrik.medley@gmail.com>
Tue, 9 Jun 2015 16:43:48 +0000 (18:43 +0200)
commit96f210f4b7172a0d427061d2f9624872efbcad39
treeac2cecfcb8a0ff0473d8d33f90cff40a0f4177ab
parent48b67012d610f9151b425a27a4287eeedfbff0a4
UploadPack: Use reachable-sha1-in-want configuration

C git 2.5 supports setting the equivalent of
RequestPolicy.REACHABLE_COMMIT with uploadpack.allowreachablesha1inwant.
Parse this into TransportConfig and use it from UploadPack. An explicitly
set RequestPolicy overrides the config, and the policy may still be
upgraded on a unidirectional connection to avoid races.

Change-Id: Id39771a6e42d8082099acde11249306828a053c0
Signed-off-by: Fredrik Medley <fredrik.medley@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/GitProtocolConstants.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransferConfig.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java