summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/exttst/org
diff options
context:
space:
mode:
authorMasaya Suzuki <masayasuzuki@google.com>2018-05-14 14:13:11 -0700
committerJonathan Nieder <jrn@google.com>2018-05-17 19:15:40 -0700
commit667e30678a6bad26f4d4d412e996b293e52e5b87 (patch)
tree473c967e9348a83de17669e9d2c332168e593c99 /org.eclipse.jgit.test/exttst/org
parent2841bab938b823c47041adc98d3a24673fd57475 (diff)
downloadjgit-667e30678a6bad26f4d4d412e996b293e52e5b87.tar.gz
jgit-667e30678a6bad26f4d4d412e996b293e52e5b87.zip
Execute AdvertiseRefsHook only for protocol v0 and v1
Refs are not advertised as part of the protocol v2 capability advertisement. Don't call AdvertiseRefsHook. Noticed because many implementations of AdvertiseRefsHook read all refs in order to call UploadPack#setAdvertisedRefs, causing the capability advertisement to be as slow as a v0 ref advertisement with some RefDatabase implementations. Such an AdvertiseRefsHook is of dubious utility (a better place to determine which refs are advertised is in the RefDatabase implementation itself, as in Gerrit), but at any rate since it's not bringing about any benefit here, we can skip the hook call. TODO: - call an appropriate hook instead (https://bugs.eclipse.org/534847) - add tests [jn: fleshed out commit message; added TODO notes] Change-Id: I6eb60ccfb251a45432954467a9ae9c1079a8c8b5 Signed-off-by: Masaya Suzuki <masayasuzuki@google.com> Signed-off-by: Jonathan Nieder <jrn@google.com>
Diffstat (limited to 'org.eclipse.jgit.test/exttst/org')
0 files changed, 0 insertions, 0 deletions