setup_path()
Shouldn't stand-alone programs other than git.c itself also call setup_path()?
I have a problem where if I only install git into my own home directory ~/bin, I can't send pull requests over SSH to that machine successfully because the execvp() of "pack-objects" by git-upload-pack fails due to the PATH not containing "git --exec-dir"
If I add a dummy setup_path(NULL) call to upload-pack.c, it works fine.
Quoted 10 lines · David Miller
Shouldn't stand-alone programs other than
git.citself also callsetup_path()?I have a problem where if I only install git into my own home directory ~/bin, I can't send pull requests over SSH to that machine successfully because the
execvp()of "pack-objects" by git-upload-pack fails due to the PATH not containing "git --exec-dir"If I add a dummy
setup_path(NULL)call toupload-pack.c, it works fine.
Yeah, Johannes Sixt had a patch to do exactly that earlier
Message-ID: <[email protected]> http://news.gmane.org/gmane.comp.version-control.git/73651
and I think it is a good idea to apply it.
From: Junio C Hamano <[email protected]>
Date: Wed, 13 Feb 2008 12:00:40 -0800
Quoted 6 lines
Yeah, Johannes Sixt had a patch to do exactly that earlier
Message-ID: <[email protected]> http://news.gmane.org/gmane.comp.version-control.git/73651and I think it is a good idea to apply it.
Me too.
In fact people can easily end up unintentionally using different versions of GIT. For example in my case I had the distribution's GIT installed in /usr/bin/git et al., then I installed the current upstream version of GIT in my home directory.
A different version of GIT gets used when you run things locally vs. doing things remotely over SSH. And I didn't notice this until I uninstalled the git-core package on my system.