summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-09-22 05:34:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-22 05:34:34 (GMT)
commit985f59c042320ddf0a506e553d5eef9689ef4c32 (patch)
tree8c4a31914111f8b1ebcebbe8bcc4757d5d8c0a05 /Documentation
parent0bfff8146f8c055fd95af4567286929ba8216fa7 (diff)
parent9a42c03cb71eaa9d41ba67275de38c997a791c32 (diff)
downloadgit-985f59c042320ddf0a506e553d5eef9689ef4c32.zip
git-985f59c042320ddf0a506e553d5eef9689ef4c32.tar.gz
git-985f59c042320ddf0a506e553d5eef9689ef4c32.tar.bz2
Merge branch 'jk/git-shell-drop-cvsserver' into maint-2.10
Diffstat (limited to 'Documentation')
-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 2e30a3e..54cf256 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),