Re: Git push failure with update hook success
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Mar 7, 2007, 23:09 UTC
- Message-ID
- <20070307230948.GE27922@spearce.org>
- In-Reply-To
- <17902.62836.920473.810183@lisa.zopyra.com>
Bill Lear <rael@zopyra.com> wrote:
Show 6 quoted lines
> Since it just gets the ref name, would one (of sufficient skill) be > able to reconstruct the same sort of report that the "pre" update hook > does? That is, from the ref name can I get the old SHA-1? If I try > to write this, what I think I would like to do is just call the > existing update hook from the post-update hook, with the post update > hook figuring out the proper arguments to pass along.
For what its worth, the receive-pack patch series that I posted a few hours ago creates a new post-receive hook that would be suitable for generating the report you are looking for.
-- Shawn.