Re: Git push failure with update hook success
On Wednesday, March 7, 2007 at 18:09:48 (-0500) Shawn O. Pearce writes:
Show 11 quoted lines
>Bill Lear <rael@zopyra.com> wrote:
>> 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.
Ok, I'll have a look at them. Thanks for the quick work.
Bill