From: Junio C Hamano Date: Fri, 29 Jun 2007 00:02:19 GMT Subject: Re: What's cooking in git.git (topics) Message-ID: <7vmyyjmxv8.fsf@assigned-by-dhcp.pobox.com> In-Reply-To: <20070628202321.GA13263@moooo.ath.cx> Matthias Lederhofer writes: > When doing more stuff in receive-pack old hooks might stop working > break. > > For example receive-pack could set up GIT_WORK_TREE with a sane > default value if a working tree can be found, i.e. > $ export GIT_WORK_TREE=$(dirname $(pwd)) > if the working tree is in the parent directory > $ export GIT_WORK_TREE=$(git config core.worktree) > if core.worktree is set and otherwise GIT_WORK_TREE is not exported. > This way hooks can just use GIT_WORK_TREE for the working tree if > they don't need anything special. Your analysis looks good. Probably we can start without doing anything to see if anybody screams.