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

git hooks and environment variables

From
Jacob Keller <jacob.keller@gmail.com>
Date
Jul 24, 2015, 01:50 UTC
Message-ID
<CA+P7+xo+SYBYOrt-72mySBe=KusgD50T0QQsONYVTf7gcbHPww@mail.gmail.com>

I've noticed that not all hooks have all of the environment variables set when they are run, and it is not clear from the manual pages which hooks have which variables set on the command line. Specifically, they don't all have GIT_DIR set, I haven't taken the time to verify exactly which variables are set and which are not yet, but..

Which would be preferred? documentation of the current behaviors, or a fixup that ensures that all the relevant variables get set?

I intend to have complete details as to which hooks get one settings, but I had this at work and don't have it here, so I can update this thread with the information later.

Regards, Jake

Message 1 of 1 in “git hooks and environment variables”
  1. Jacob KellerJul 24, 2015

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.