Hello!
I'm testing on Gerrit 3.10.0.
I created test repo where I have more than one commit in master branch and additionally separate test-branch with extra commit.
I added following options to $site_path/etc/jgit.config:
[uploadpack]
hideRefs = refs/heads/test-branch
allowAnySha1InWant = true
allowTipSHA1InWant = true
But also was trying to add them to $site_path/git/Test-project.git/config.
I trying to fetch arbitrary object but it fails:
error: Server does not allow request for unadvertised object full-sha1-of-older-commit-in-master-branch
error: Server does not allow request for unadvertised object full-sha1-of-tip-of-hidden-test-branch
Yet uploadpack.hideRefs is effective as I don't see test-branch in output of 'git ls-remote'. When uploadpack.hideRefs is removed, I can see it.
If I switch to Git V2 protocol, I can fetch mentioned SHA1s. But I want to be able to fetch arbitrary objects using V0 / V1 Git protocol.
Regards!
--
Piotr