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

Re: [PATCH] allow git to use the PATH for finding subcommands and help docs

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 19, 2007, 17:19 UTC
Message-ID
<Pine.LNX.4.64.0710191917440.16728@wbgn129.biozentrum.uni-wuerzburg.de>
In-Reply-To
<20071019164816.GA24573@glandium.org>
Hi,
On Fri, 19 Oct 2007, Mike Hommey wrote:
Show 6 quoted lines
> On Fri, Oct 19, 2007 at 04:27:39PM +0200, Johannes Schindelin wrote:
> > While reading this, I have to wonder why it is not just simpler to try 
> > with builtin_exec_path first, and if that fails, just let exec() find the 
> > program in the PATH?
> 
> Why not try the directory where the git executable is, too ?

I commented on that. If the git command was not specified with an absolute path, then make it absolute (and only if not even a relative path was specified, ignore this altogether since git is in the PATH).

I was a bit terse on the issue I have to admit, though.

Ciao, Dscho

Previous: Mike HommeyNext: Scott Parish
Message 9 of 10 in “allow git to use the PATH for finding subcommands and help docs”
  1. allow git to use the PATH for finding subcommands and help docsScott R Parish, Oct 19, 2007
  2. Johannes SixtOct 19, 2007
  3. allow git to use the PATH for finding subcommands and help docsScott Parish, Oct 19, 2007
  4. Johannes SixtOct 19, 2007
  5. Scott ParishOct 19, 2007
  6. Johannes SixtOct 19, 2007
  7. Johannes SchindelinOct 19, 2007
  8. Mike HommeyOct 19, 2007
  9. Johannes SchindelinOct 19, 2007
  10. Scott ParishOct 20, 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.