From: Shawn O. Pearce Date: Tue, 20 Mar 2007 14:38:44 GMT Subject: Re: [PATCH 3/4] update-hook: parse the tag header in preparation to use the tag type Message-ID: <20070320143844.GA1750@spearce.org> In-Reply-To: <200703201058.42753.andyparkins@gmail.com> Andy Parkins wrote: > The tag header is parsed with a while loop and read command. I'm not > entirely sure how portable it is, as it had to use the following unusual > heredoc format: > > while read field value > do > # .. > done <<< "$(some command)" To bad you can't use for-each-ref. ;-) The problem of course is the update hook is running before a ref is created to point at the tag. If you used post-receive hook on the other hand... Oh, right, that has its own problems too! -- Shawn.