Re: [PATCH] Allow git-shell to be used as a ssh forced-command
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 17, 2009, 23:40 UTC
- Message-ID
- <7v63h24znd.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <1239916256-10878-1-git-send-email-mh@glandium.org>
Mike Hommey <mh@glandium.org> writes:
> 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.
How does this interact with a typical gitosis installation? I think it extracts bits from the ORIGINAL_COMMAND and formulates a sanitized command line and then passes it to git-shell but I do not think it removes the variable from the environment.