Execute custom install of git and/or force git-shell from ssh.
Relies on using a dedicated SSH key to access the server using git.
Execute custom install of git and/or force git-shell from ssh.
Relies on using a dedicated SSH key to access the server using git.
#!/bin/sh | |
export PATH=$HOME/opt/usr/bin:$PATH | |
export GIT_EXEC_PATH=$HOME/opt/usr/libexec/git-core |
#!/bin/sh | |
source $HOME/.bashrc | |
if [ -z "$SSH_ORIGINAL_COMMAND" ]; then | |
exec git-shell | |
else | |
exec git-shell -c "$SSH_ORIGINAL_COMMAND" | |
fi |