diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-09-26 15:09:09 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-26 15:09:09 +0900 |
commit | 20c484eb042459f279c89d562aaf9d77dc2f7862 (patch) | |
tree | db9e4079a6adc46bd3d911d0d373f91745d90a65 /git-shell.txt | |
parent | d4bbec033e244d5d84e1889f00a9b2d74a0fcab6 (diff) | |
download | git-htmldocs-20c484eb042459f279c89d562aaf9d77dc2f7862.tar.gz |
Autogenerated HTML docs for v2.14.2-606-g7451f
Diffstat (limited to 'git-shell.txt')
-rw-r--r-- | git-shell.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/git-shell.txt b/git-shell.txt index 2e30a3e42..54cf2560b 100644 --- a/git-shell.txt +++ b/git-shell.txt @@ -79,6 +79,22 @@ EOF $ chmod +x $HOME/git-shell-commands/no-interactive-login ---------------- +To enable git-cvsserver access (which should generally have the +`no-interactive-login` example above as a prerequisite, as creating +the git-shell-commands directory allows interactive logins): + +---------------- +$ cat >$HOME/git-shell-commands/cvs <<\EOF +if ! test $# = 1 && test "$1" = "server" +then + echo >&2 "git-cvsserver only handles \"server\"" + exit 1 +fi +exec git cvsserver server +EOF +$ chmod +x $HOME/git-shell-commands/cvs +---------------- + SEE ALSO -------- ssh(1), |