git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: "git stash" is not known to git

From
David Kastrup <dak@gnu.org>
Date
Jul 30, 2007, 19:30 UTC
Message-ID
<85ir81u1t1.fsf@lola.goethe.zz>
In-Reply-To
<20070730110354.GA11676@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 20 quoted lines
> 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
Previous: Jeff KingNext: Jeff King
Message 9 of 14 in “"git stash" is not known to git”
  1. David KastrupJul 30, 2007
  2. Matthieu MoyJul 30, 2007
  3. David KastrupJul 30, 2007
  4. Jeff KingJul 30, 2007
  5. David KastrupJul 30, 2007
  6. Jeff KingJul 30, 2007
  7. David KastrupJul 30, 2007
  8. Jeff KingJul 30, 2007
  9. David KastrupJul 30, 2007
  10. Jeff KingJul 30, 2007
  11. Junio C HamanoJul 30, 2007
  12. Junio C HamanoJul 31, 2007
  13. Jeff KingJul 31, 2007
  14. Junio C HamanoJul 30, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.