]> source.dussan.org Git - jgit.git/commit
Advertise capabilities with no refs in upload service. 53/15253/2
authorColby Ranger <cranger@google.com>
Thu, 8 Aug 2013 14:57:49 +0000 (07:57 -0700)
committerColby Ranger <cranger@google.com>
Thu, 8 Aug 2013 15:10:40 +0000 (11:10 -0400)
commitae1f46989c0515dce640ab339453b09810c0c5a5
treeee40a2bb0c8914d64f27f0914e8c504e78103bfc
parent15adcefb73a48ee11ec1b231a2ebf8c18e15e53f
Advertise capabilities with no refs in upload service.

With reference hiding, it is possible for a repository to appear
empty when all refs are hidden. This causes capabilities to not be
advertised either, since they are published with the first reference,
breaking fetch by SHA1 support.

Always advertise the capabilites by publishing the symbolic capabilities
reference when the repository has no references to advertise (similar to
the receive service).

Change-Id: I8060e430ee03571dc51239e702864c85e888505c
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java