We are moving our Git repos from plain Git/SSH to Gitosis for security reasons.
One benefit of plain Git/SSH is that any user can SSH into the Git server and perform a readonly Git query without requiring a full local clone.
For example, if I want to find the commit hash of the master branch (but nothing else), I can run:
ssh gitserver 'cd /path/to/repo && git rev-parse master'
This is extremely useful if the full repo is very large and I only want to find out a few small well-defined pieces of information.
If we move the git repo to Gitosis, the SSH method will no longer be possible. Is there any other way for a non-privileged user to perform a small readonly query without having a full clone of the repo? Thanks.