I am trying to get round a silly firewall issue. I am trying to chain ssh access to git through a proxy ssh:
~/git-chain:
#!/bin/bash
ssh hosticangetto ssh $*
# End
And then:
$ export GIT_SSH=~/git-chain
$ git clone ssh://git@somerepostore.com/somerepo.git
E, [2012-02-07T12:50:21.434913 #28359] ERROR -- : git command not recognized
fatal: The remote end hung up unexpectedly
the arguments being passed into my script are:
git@somerepostore.com git-upload-pack 'somerepo.git'
I've checked the keys from the hosticangetto to the git repository store and everything is ok.
I am not sure why this fails. I've done this sort of thing with mercurial before with mercurial -e switch.