{"thread":{"id":"39927","subject":"git hooks and environment variables","startedAt":"2015-07-24T01:50:08Z","lastAt":"2015-07-24T01:50:08Z","messageCount":1,"participants":["Jacob Keller"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"266695","messageId":"CA+P7+xo+SYBYOrt-72mySBe=KusgD50T0QQsONYVTf7gcbHPww@mail.gmail.com","threadId":"39927","inReplyTo":null,"subject":"git hooks and environment variables","fromName":"Jacob Keller","fromEmail":"jacob.keller@gmail.com","sentAt":"2015-07-24T01:50:08Z","receivedAt":"2015-07-24T01:50:08Z","isPatch":false,"sender":{"key":"jacob.keller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/874719?v=4"},"body":"I've noticed that not all hooks have all of the environment variables\nset when they are run, and it is not clear from the manual pages which\nhooks have which variables set on the command line. Specifically, they\ndon't all have GIT_DIR set, I haven't taken the time to verify exactly\nwhich variables are set and which are not yet, but..\n\nWhich would be preferred? documentation of the current behaviors, or a\nfixup that ensures that all the relevant variables get set?\n\nI intend to have complete details as to which hooks get one settings,\nbut I had this at work and don't have it here, so I can update this\nthread with the information later.\n\nRegards,\nJake\n"}]}