summaryrefslogtreecommitdiff
path: root/Documentation/git-shell.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/git-shell.txt')
-rw-r--r--Documentation/git-shell.txt33
1 files changed, 16 insertions, 17 deletions
diff --git a/Documentation/git-shell.txt b/Documentation/git-shell.txt
index cc4266d83b..9b9250600f 100644
--- a/Documentation/git-shell.txt
+++ b/Documentation/git-shell.txt
@@ -3,33 +3,32 @@ git-shell(1)
NAME
----
-git-shell - Restricted login shell for GIT over SSH only
+git-shell - Restricted login shell for Git-only SSH access
SYNOPSIS
--------
-'git-shell' -c <command> <argument>
+[verse]
+'git shell' [-c <command> <argument>]
DESCRIPTION
-----------
-This is meant to be used as a login shell for SSH accounts you want
-to restrict to GIT pull/push access only. It permits execution only
-of server-side GIT commands implementing the pull/push functionality.
-The commands can be executed only by the '-c' option; the shell is not
-interactive.
-Currently, only the `git-receive-pack` and `git-upload-pack` commands
-are permitted to be called, with a single required argument.
+A login shell for SSH accounts to provide restricted Git access. When
+'-c' is given, the program executes <command> non-interactively;
+<command> can be one of 'git receive-pack', 'git upload-pack', 'git
+upload-archive', 'cvs server', or a command in COMMAND_DIR. The shell
+is started in interactive mode when no arguments are given; in this
+case, COMMAND_DIR must exist, and any of the executables in it can be
+invoked.
-Author
-------
-Written by Linus Torvalds <torvalds@osdl.org>
+'cvs server' is a special command which executes git-cvsserver.
-Documentation
---------------
-Documentation by Petr Baudis and the git-list <git@vger.kernel.org>.
+COMMAND_DIR is the path "$HOME/git-shell-commands". The user must have
+read and execute permissions to the directory in order to execute the
+programs in it. The programs are executed with a cwd of $HOME, and
+<argument> is parsed as a command-line string.
GIT
---
-Part of the gitlink:git[7] suite
-
+Part of the linkgit:git[1] suite