When I try to do a $ git push origin master, I get an error "bash: git-receive-pack: command not found."
When I do a $ which git on the remote server, it gives me the same path /usr/local/git/bin/git, asn shown in echo $PATH. $ cd '/data/git/sandbox/tmp/' $ pwd ---> /data/git/sandbox/tmp $ git status ---> # On branch master ---> nothing to commit (working directory clean) ############################ ### (next command) ERROR ### ############################ $ git push origin master ---> Password: ---> bash: git-receive-pack: command not found ---> fatal: The remote end hung up unexpectedly ### (next command) works fine if I force the path at the time I push. So git seems ### git-receive-pack if I force the same path shown when I echo the $PATH below. $ git push origin master --receive-pack=/usr/local/git/bin/git-receive-pack ---> Password: ---> Everything up-to-date $ ssh roscoe@192.168.1.45 ---> Password: ---> Last login: Mon Jun 25 21:37:36 2012 from 192.168.1.97 ### (next command) Correct path for git on server server:~ roscoe$ which git ---> /usr/local/git/bin/git ### (next command) correct git path is shown in $PATH server:~ roscoe$ echo $PATH ---> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin ### (next command) interesting that git-receive-pack is a symlink to -> git server:~ roscoe$ ls -la /usr/local/git/bin ---> total 15736 ---> drwxr-xr-x 9 root wheel 306 Jun 20 19:22 . ---> drwxr-xr-x 8 root wheel 272 Jun 20 19:22 .. ---> -rwxr-xr-x 1 root wheel 4053064 Jun 19 12:23 git ---> -rwxr-xr-x 2 root wheel 120933 Jun 19 12:23 git-cvsserver ---> lrwxr-xr-x 1 root wheel 3 Jun 20 19:22 git-receive-pack -> git ---> -rwxr-xr-x 2 root wheel 1738816 Jun 19 12:23 git-shell ---> lrwxr-xr-x 1 root wheel 3 Jun 20 19:22 git-upload-archive -> git ---> -rwxr-xr-x 2 root wheel 1797408 Jun 19 12:23 git-upload-pack ---> -rwxr-xr-x 1 root wheel 329597 Jun 19 12:23 gitk server:~ roscoe$ I tried adding the path in ~/.bashrc, ~/.bash_profile, /etc/bashrc, and then in /etc/rc.common, and I didn't think it would make any difference, and sure enough it did not change anything. I dont mind using : $ git push origin master --receive-pack=/usr/local/git/bin/git-receive-pack but it would be a lot nicer if I could just use: $ git push origin master Grateful for any ideas... Bill Hernandez Plano, Texas -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/e1tyd0oeLwMJ. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.