From: Junio C Hamano Date: Mon, 11 Feb 2013 18:32:47 GMT Subject: Re: [PATCH 1/2] shell doc: emphasize purpose and security model Message-ID: <7vliaun1kg.fsf@alter.siamese.dyndns.org> In-Reply-To: <20130211055752.GF15329@elie.Belkin> Jonathan Nieder writes: > diff --git a/Documentation/git-shell.txt b/Documentation/git-shell.txt > index 9b925060..4fe93203 100644 > --- a/Documentation/git-shell.txt > +++ b/Documentation/git-shell.txt > @@ -9,25 +9,61 @@ git-shell - Restricted login shell for Git-only SSH access > SYNOPSIS > -------- > [verse] > -'git shell' [-c ] > +'chsh' -s $(which git-shell) git > +'git clone' `git@localhost:/path/to/repo.git` > +'ssh' `git@localhost` I am wondering if we want to do the following instead of/in addition to fixing the $(which git-shell). It is not like we only allow a single user and its name has to be 'git'. diff --git a/Documentation/git-shell.txt b/Documentation/git-shell.txt index 4fe9320..6829ea9 100644 --- a/Documentation/git-shell.txt +++ b/Documentation/git-shell.txt @@ -9,9 +9,9 @@ git-shell - Restricted login shell for Git-only SSH access SYNOPSIS -------- [verse] -'chsh' -s $(which git-shell) git -'git clone' `git@localhost:/path/to/repo.git` -'ssh' `git@localhost` +'chsh' -s /path/to/git-shell +'git clone' `@localhost:/path/to/repo.git` +'ssh' `@localhost` DESCRIPTION -----------