aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-shell.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-09-22 14:50:02 +0900
committerJunio C Hamano <gitster@pobox.com>2017-09-22 14:50:02 +0900
commitcef9271e0181fa22d337dca3a17bf07aa92a03e8 (patch)
treeed8dd5e419be8c24d40d8be277944f59a87979ec /Documentation/git-shell.txt
parent94c9fd268d4287f6fbfef84793288479905a7e48 (diff)
parent42e6fde5c28150206956ea4be490d886c4ecbd68 (diff)
downloadgit-cef9271e0181fa22d337dca3a17bf07aa92a03e8.tar.xz
Sync with 2.13.6
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-shell.txt')
-rw-r--r--Documentation/git-shell.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/git-shell.txt b/Documentation/git-shell.txt
index 2e30a3e42d..54cf2560be 100644
--- a/Documentation/git-shell.txt
+++ b/Documentation/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),