On Thu, Jan 17, 2008 at 12:53:13PM +0100, Adeodato Sim?? wrote: > % echo $PATH > /home/adeodato/bin:/usr/local/bin:/usr/bin:/bin:/usr/games > % which ssh > /home/adeodato/bin/ssh > % git pull > Enter passphrase for key '/home/adeodato/.ssh/id_rsa': > > This spawns a process like: > > adeodato 21042 0.0 0.4 4908 2136 pts/19 S+ 12:49 0:00 ssh > alioth.debian.org git-upload-pack '/git/tools-release/release.git' > > % ls -l /proc/21042/exe > lrwxrwxrwx 1 adeodato adeodato 0 Jan 17 12:51 /proc/21042/exe -> /usr/bin/ssh > > I think git should honour $PATH when spawning processes.
Yes, the problem here is that git prepends GIT_EXEC_PATH (compiled-in, from environment, or from option) to the PATH, and the Debian compiled-in GIT_EXEC_PATH is /usr/bin/, as the git-* programs are installed there. So /usr/bin/ssh is found first. This will be most probably be solved with git 1.6.0, when the git-* programs are moved out of /usr/bin/. You can work around the problem by setting GIT_SSH in the environment, see git(7). Thanks, Gerrit. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]