From: Jeff King Date: Mon, 30 Jul 2007 11:03:55 GMT Subject: Re: "git stash" is not known to git Message-ID: <20070730110354.GA11676@coredump.intra.peff.net> In-Reply-To: <86bqdutb7r.fsf@lola.quinscape.zz> On Mon, Jul 30, 2007 at 12:52:40PM +0200, David Kastrup wrote: > How does it calculate its exec path? It would appear that it would > not contain _either_ /usr/local/bin _or_ /opt/git/bin in my > installation if it can't find git-stash (which should be statable in > both places). See exec_cmd.c:execv_git_cmd. It checks in order: 1. --exec-path= on command line 2. $GIT_EXEC_PATH from environment 3. GIT_EXEC_PATH defined at compile-time (set by Makefile from $(gitexecdir), which is generally the same as $(bindir)) So it should have /opt/git/bin in your case, but it's possible since that is a Makefile variable that you failed to recompile correctly after changing its value. > Have a command handy for checking the exec path? git --exec-path -Peff