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

Re: [PATCH] t7005-editor.sh: Don't invoke real vi when it is in GIT_EXEC_PATH

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 11, 2007, 17:44 UTC
Message-ID
<Pine.LNX.4.64.0711111742010.4362@racer.site>
In-Reply-To
<1194802691-27610-1-git-send-email-B.Steinbrink@gmx.de>
Hi,
On Sun, 11 Nov 2007, Björn Steinbrink wrote:
Show 6 quoted lines
> The git wrapper executable always prepends the GIT_EXEC_PATH build
> variable to the current PATH, so prepending "." to the PATH is not
> enough to give precedence to the fake vi executable.
> 
> The --exec-path option allows to prepend a directory to PATH even before
> GIT_EXEC_PATH (which is added anyway), so we can use that instead.

Hmm. This will probably stop working when you do not have git installed, because you now tell git to search for git programs in ".", where they are not. Probably git-commit executes your installed write-tree, commit-tree and friends, instead of the compiled ones.

Ciao, Dscho

Previous: Björn SteinbrinkNext: Brian Gernhardt
Message 15 of 18 in “t7005 and vi in GIT_EXEC_PATH”
  1. Brian GernhardtNov 10, 2007
  2. David KastrupNov 10, 2007
  3. Brian GernhardtNov 10, 2007
  4. Johannes SchindelinNov 11, 2007
  5. Brian GernhardtNov 11, 2007
  6. Johannes SchindelinNov 11, 2007
  7. Junio C HamanoNov 11, 2007
  8. Use the best available exec path onlyBjörn Steinbrink, Nov 11, 2007
  9. Johannes SchindelinNov 11, 2007
  10. Jakub NarebskiNov 11, 2007
  11. Björn SteinbrinkNov 11, 2007
  12. Johannes SchindelinNov 11, 2007
  13. Junio C HamanoNov 11, 2007
  14. t7005-editor.sh: Don't invoke real vi when it is in GIT_EXEC_PATHBjörn Steinbrink, Nov 11, 2007
  15. Johannes SchindelinNov 11, 2007
  16. Brian GernhardtNov 11, 2007
  17. Johannes SchindelinNov 11, 2007
  18. Björn SteinbrinkNov 11, 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.