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

Re: [PATCH] Glean libexec path from argv[0] for git-upload-pack and git-receive-pack.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 30, 2008, 18:21 UTC
Message-ID
<alpine.LSU.1.00.0807302020300.3486@wbgn129.biozentrum.uni-wuerzburg.de>
In-Reply-To
<48909396.3080500@lastminute.com>
Hi,
On Wed, 30 Jul 2008, Steve Haslam wrote:
> I think that once git-upload-pack.c et al get the argv[0] path over to 
> setup_path() then there's nothing more to do; setup_path() already uses 
> argv0_path in its list of paths to try. I'm confused to the reference to 
> PATH, though: we're avoiding the PATH environment variable completely.

There is an issue in setting up the argv0_path when Git is called as "git" and resolved via the PATH: argv[0] then is literally "git".

And we need argv0_path for other things than just calling programs: relative etc/gitconfig and libexecdir.

Ciao, Dscho

Previous: Steve HaslamNext: Steve Haslam
Message 4 of 5 in “Glean libexec path from argv[0] for git-upload-pack and git-receive-pack.”
  1. Glean libexec path from argv[0] for git-upload-pack and git-receive-pack.Steve Haslam, Jul 30, 2008
  2. Johannes SchindelinJul 30, 2008
  3. Steve HaslamJul 30, 2008
  4. Johannes SchindelinJul 30, 2008
  5. Steve HaslamJul 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.