ssh: enable fetches using "git" user
If the "mob" user is enabled it's already possible to fetch over
ssh with no password or registered user by simply using the "mob"
user since it's a passwordless user.
If "mob" is disbled, however, that will not work.
The user name "git" is already reserved and cannot be added to the
list of push users for a project.
Allow the "git" user to always work for fetches (upload-pack and
upload-archive) even when "mob" is disabled. Set up the "git"
user to only have read-only access by giving it the same group as
the user "nobody".
Pre-existing $chroot/etc/passwd files must be edited by hand to add
the git user in order to enable this functionality.
With this change it's now possible to fetch using either something
like "ssh://git@example.com/proj.git" or "git@example.com:proj.git"
which looks a lot nicer than "mob@example.com:proj.git".
It's also more secure since it's a read-only user and is available
even when the "mob" user has been disabled.
Actually displaying the new fetch-over-ssh option to users on the
gitweb project pages is left as an excercise for a future update.
Signed-off-by: Kyle J. McKay <mackyle@gmail.com>