]> source.dussan.org Git - jgit.git/commit
Fix ReceivePack connectivity validation with alternates 93/2993/1
authorShawn O. Pearce <spearce@spearce.org>
Sat, 2 Apr 2011 00:21:38 +0000 (20:21 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 2 Apr 2011 00:23:51 +0000 (20:23 -0400)
commit3609dde4cde62b9d74a6867cba6ed6b0a07320a0
tree9cf451fcc7d087e8e81eb2374e3ebe25ea6d2bfc
parentffbaf694e28fcc62c50326cd555d8f2646d31a0d
Fix ReceivePack connectivity validation with alternates

If a repository has an alternate object database, the alternate has
its references advertised as ".have" lines, which permits the client
to use these as delta base candidates when generating the pack.  If
setCheckReferencedObjectsAreReachable(true) is used, these additional
have lines need to be considered in addition to the advertised refs.

Change-Id: Ie39c6696f9d3ff147ef4405cd5624f6011700ce5
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java