author | Frank Lichtenheld <frank@lichtenheld.de> | |
Thu, 7 Jun 2007 14:57:01 +0000 (16:57 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 8 Jun 2007 09:56:18 +0000 (02:56 -0700) | ||
commit | 693b63273e05b5db4612178989271de14439b08f | |
tree | dd3a0b2185f8099ac72b0a057b1d6d94cda4d47e | tree | snapshot |
parent | abc403f58452da667b261274a1091af61dfec35c | commit | diff |
cvsserver: Add some useful commandline options
Make git-cvsserver understand some options inspired by
git-daemon, namely --base-path, --export-all, --strict-paths.
Also allow the caller to specify a whitelist of allowed
directories, again similar to git-daemon.
While already adding option parsing also support the common
--help and --version options.
Rationale:
While the gitcvs.enabled configuration option already
offers means to limit git-cvsserver access to a repository,
there are some use cases where other methods of access
control prove to be more useful.
E.g. if setting up a pserver for a collection of public
repositories one might want limit the exported repositories
to exactly the directory this collection is located whithout
having to worry about other repositories that might lie around
with the configuration variable set (never trust your users ;)
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Make git-cvsserver understand some options inspired by
git-daemon, namely --base-path, --export-all, --strict-paths.
Also allow the caller to specify a whitelist of allowed
directories, again similar to git-daemon.
While already adding option parsing also support the common
--help and --version options.
Rationale:
While the gitcvs.enabled configuration option already
offers means to limit git-cvsserver access to a repository,
there are some use cases where other methods of access
control prove to be more useful.
E.g. if setting up a pserver for a collection of public
repositories one might want limit the exported repositories
to exactly the directory this collection is located whithout
having to worry about other repositories that might lie around
with the configuration variable set (never trust your users ;)
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-cvsserver.txt | diff | blob | history | |
git-cvsserver.perl | diff | blob | history | |
t/t9400-git-cvsserver-server.sh | diff | blob | history |