On Tue, 27 Oct 2015 at 06:59:11, Lukas Fleischer wrote: > [...] > On second thought, it might be possible to overwrite the value of > transfer.hiderefs using the -c command line option. If we combine that > with the negative patterns supported by hiderefs, we might get a > solution that is clean and that avoids race conditions. I will check > whether that works with git-http-backend as well and will report back. > > Thanks for the pointer! Using receive.hideRefs seems to work but there are two minor issues: 1. There does not seem to be a way to pass configuration parameters to git-shell commands. Right now, the only way to work around this seems to write a wrapper script around git-shell that catches git-receive-pack commands and executes something like git -c receive.hideRefs=[...] receive-pack [...] instead of forwarding those commands to git-shell. How about allowing to overwrite configuration parameters via an environment variable? Has that been discussed before? 2. transfer.hideRefs and receive.hideRefs do not seem to work with Git namespaces in general. show_ref_cb() replaces each ref outside the current namespace with ".have" before passing it to show_ref() which in turn performs the ref_is_hidden() check. This has the nice side effect that receive.hideRefs=.have does exactly what I want, however it also means that hideRefs feature does not allow for excluding only specific tags outside the current namespace. Is that intended? Can we rely on Git always looking for ".have" in the hideRefs list in this case? Should the documentation be updated? Regards, Lukas -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html