Thread (1 message) 1 message, 1 author, 2016-06-15

Re: "git stash" is not known to git

From: David Kastrup <hidden>
Date: 2016-06-15 22:43:25

Jeff King [off-list ref] writes:
On Mon, Jul 30, 2007 at 12:52:40PM +0200, David Kastrup wrote:
quoted
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.
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help