Jeff King <peff@xxxxxxxx> writes: > 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 dak@lola:/home/tmp/git$ git --exec-path /opt/git/bin dak@lola:/home/tmp/git$ git stash --help Reformatting git-stash(1), please wait... WARNING: terminal is not fully functional - (press RETURN)q dak@lola:/home/tmp/git$ git-stash --help dak@lola:/home/tmp/git$ Usage: /usr/local/bin/git-stash [ | list | show | apply | clear] I think I'll just soak my head in a bucket. Don't ask me _what_ I imagined to be experiencing here. Maybe missing out shell completion when not typing the hyphen or similar nonsense. Sorry for the noise. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html