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

Re: Multiple paths in GIT_EXEC_PATH

From
Kevin Daudt <me@ikke.info>
Date
Oct 17, 2017, 15:56 UTC
Message-ID
<20171017155625.GE19335@alpha.vpn.ikke.info>
In-Reply-To
<CA+A=rXEyQ4aQL=p55f_+kbbrnDyDr9ULSq9gqBE2YE9y6+oJ3w@mail.gmail.com>
On Tue, Oct 17, 2017 at 06:21:22PM +0300, Nikolay Yakimov wrote:
Show 11 quoted lines
> Hello. After updating to a recent git release (2.14, I believe, but
> possibly earlier), setting GIT_EXEC_PATH to multiple directories
> stopped working. It did work before, and I believe the culprit is
> 'git-sh-setup', which uses 'git --exec-path' output directly, while
> most other git components observe PATH syntax, i.e. multiple paths
> with colon separator. Is this intended, or is it an oversight?
> 
> For why I need that is another matter. Long story short, I need git to
> look for '.gitignore' in a particular non-standard location, since I
> have multiple git repositories in the same workdir (that workdir being
> $HOME and git repositories being stores for my different configs)

The commit that changed what you described is 1073094f3 (git-sh-setup: be explicit where to dot-source git-sh-i18n from., 2016-10-29). That commit claims there were already scripts that assumed GIT_EXEC_PATH is just a single entry. That commit was included in v2.11.

There was also a recent thread[0] about it that discussed this issue, where someone stated that indeed treating GIT_EXEC_PATH with the same semantics as PATH has been broken for a while, but it seems there are no real plans to fix it.

[0]:https://public-inbox.org/git/20170928223134.GA30744@varnish/
Previous: Nikolay YakimovNext: Junio C Hamano
Message 2 of 4 in “Multiple paths in GIT_EXEC_PATH”
  1. Nikolay YakimovOct 17, 2017
  2. Kevin DaudtOct 17, 2017
  3. Junio C HamanoOct 17, 2017
  4. Dennis KaarsemakerOct 24, 2017

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.