Re: problem pushing repository
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 22, 2007, 02:00 UTC
- Message-ID
- <7v8xacbvf1.fsf@assigned-by-dhcp.pobox.com>
- In-Reply-To
- <799406d60706211849h6e4fd1dbn487beab03fe1d79c@mail.gmail.com>
"Adam Mercer" <ramercer@gmail.com> writes:
Show 11 quoted lines
> [ram@skymoo glue]$ git push > ssh://ram@newberry.ihepa.ufl.edu/~ram/public_html/git/glue.git > bash: line 1: git-receive-pack: command not found > fatal: The remote end hung up unexpectedly > error: failed to push to > 'ssh://ram@newberry.ihepa.ufl.edu/~ram/public_html/git/glue.git' > [ram@skymoo glue]$ which git-receive-pack > /Users/ram/opt/git/bin/git-receive-pack > [ram@skymoo glue]$ > > git-receive-pack is in my $PATH so why can't it be found when trying to push?
Check your ssh and ssh server settings. Often the process invoked from non-interactive ssh connection (such as the attempt to invoke receive-pack) would not get the PATH you set up in ~/.login or ~/.bash_profile.
$ ssh newberry.ihepa.ufl.edu sh -c 'echo $PATH'
may be a good starting point to test this, and the first step to fix it would be
$ man ssh $ man sshd