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

Re: Git fails to detect subcommand when hook is symlinked to a builtin

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Mar 20, 2011, 09:09 UTC
Message-ID
<20110320090937.GA13167@elie>
In-Reply-To
<20110320082020.GA12663@elie>
Jonathan Nieder wrote:
> Instead, the rule is:

Sorry, that came out a muddle. Teemu Likonen explains the rule[1] better. And Linus explains the rationale[2]. The main reason I found this interesting enough to chime in is that I was considering proposing changing the beginning of git scripts to

 . "$(git --exec-path)/git-sh-setup"

to set a good example, which would be a regression in git's ability to complain when used in a fragile way.

So, Todd: thanks for a very useful reminder.

[1] http://thread.gmane.org/gmane.comp.version-control.git/94378 [2] http://thread.gmane.org/gmane.comp.version-control.git/93825

Previous: Jonathan Nieder
Message 6 of 6 in “Git fails to detect subcommand when hook is symlinked to a builtin”
  1. Todd ZullingerMar 18, 2011
  2. Junio C HamanoMar 19, 2011
  3. Todd ZullingerMar 19, 2011
  4. Junio C HamanoMar 19, 2011
  5. Jonathan NiederMar 20, 2011
  6. Jonathan NiederMar 20, 2011

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.