From: Paul Serice Date: Wed, 07 Dec 2005 00:19:58 GMT Subject: Re: [RFC] Run hooks with a cleaner environment Message-ID: <43962AAE.4040704@serice.net> In-Reply-To: > 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. > 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