From: Junio C Hamano Date: Mon, 03 Dec 2007 05:25:43 GMT Subject: Re: [PATCH v4] Allow update hooks to update refs on their own. Message-ID: <7vmyssqrhk.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20071203040108.GS14735@spearce.org> "Shawn O. Pearce" writes: > This probably requires exporting the name of the ref we currently > have locked in an environment variable (and teach lockfile.c it) > so we can effectively do recursive locking. That way the update > hook can still use git-update-ref to change the ref safely. Heh, I like that, although I suspect getting this right would mean the topic should be post 1.5.4 (which I do not mind).