From: Junio C Hamano Date: Fri, 17 Apr 2009 23:40:54 GMT Subject: Re: [PATCH] Allow git-shell to be used as a ssh forced-command Message-ID: <7v63h24znd.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1239916256-10878-1-git-send-email-mh@glandium.org> Mike Hommey 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.