Re: [RFC] Run hooks with a cleaner environment
- From
- Paul Serice <paul@serice.net>
- Date
- Dec 7, 2005, 00:19 UTC
- Message-ID
- <43962AAE.4040704@serice.net>
- In-Reply-To
- <Pine.LNX.4.64.0512061716030.25300@iabervon.org>
> Currently, hooks/post-update is run in the environment that > receive-pack is run. This means that there are a number of things > that are unpredictable. I'd like to make it set things up in a more > predictable and useful way.
I'd like to second this. I've been bitten by two of the three issues you've raised.
Show 5 quoted lines
> stdout and stdin are connected to send-pack, either by broken pipes > (for local pushes) or an ignored socket (via ssh). stdin should > probably be /dev/null, and stdout should be either a log file or > /dev/null. stderr is still the push's stderr, which may or may not > be desired.
If there is a controlling terminal and nothing else git-related is reading from it, I'd like for stdout and stderr to be reconnected.
Paul Serice