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

Re: [RFC/PATCH] Documentation: Don't assume git-sh-setup and git-parse-remote are in the PATH

From
Jeff King <peff@peff.net>
Date
Jun 29, 2008, 05:38 UTC
Message-ID
<20080629053823.GA8262@sigill.intra.peff.net>
In-Reply-To
<7vvdztmfrk.fsf@gitster.siamese.dyndns.org>
On Sat, Jun 28, 2008 at 02:05:51PM -0700, Junio C Hamano wrote:
> > What do you need exec-path in PATH for?
> 
> When git-parse-remote is not installed in $(bindir) anymore, the shell
> script library won't be found on user's $PATH in general.
I think the right question is:
  PATH=$PATH:$(git --exec-path)
  . git-sh-setup
or
  . "$(git --exec-path)/git-sh-setup"
?

Generally, I would prefer the latter because it has no side effects. For now at least, though, shell scripts probably want git's exec-path in their PATH so "git-foo" invocations don't break.

-Peff
Previous: Junio C HamanoNext: jrnieder@uchicago.edu
Message 4 of 7 in “Documentation: Don't assume git-sh-setup and git-parse-remote are in the PATH”
  1. Documentation: Don't assume git-sh-setup and git-parse-remote are in the PATHJonathan Nieder, Jun 27, 2008
  2. Alex RiesenJun 28, 2008
  3. Junio C HamanoJun 28, 2008
  4. Jeff KingJun 29, 2008
  5. jrnieder@uchicago.eduJun 29, 2008
  6. Junio C HamanoJun 29, 2008
  7. Jonathan NiederJun 30, 2008

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.