Re: [PATCH] Allow git-shell to be used as a ssh forced-command
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Apr 17, 2009, 16:24 UTC
- Message-ID
- <37fcd2780904170924t61168a49uf1800098cdb1d730@mail.gmail.com>
- In-Reply-To
- <1239916256-10878-1-git-send-email-mh@glandium.org>
On Thu, Apr 16, 2009 at 11:10:56PM +0200, Mike Hommey wrote:
> When using a forced-command, OpenSSH sets the SSH_ORIGINAL_COMMAND > variable to what would otherwise be passed to $SHELL -c. When this > variable is set, we use it instead of the contents of argv.
It would be nice to provide some justification where it can be used. IOW, why do you want to have the force command where essentially you execute the original command as it were no force-command?
Dmitry