Pass the right access path for the commands executed in Git
because of an incoming SSH connection:
- GIT for all Git/SSH commands
- SSH_COMMAND for everything else
Allow to honour force push ACL (and potentially other operations)
because of the correct propagation of the original identity
with the right access path.
Previously the code was setting the access path on SshScope.Context
which is stored in the ThreadLocal context of the receiving SSH command,
which is different from the other thread that execute the action.
Bug: Issue 9823
Change-Id: I2b9e1369e53a000457d4571ecf5e6d7ddf843827