Re: GCC's Git update_hook doesn't support deleting branches

2020-10-01 Thread Jonathan Wakely via Gcc
On Thu, 1 Oct 2020 at 18:38, Joseph Myers wrote: > > On Thu, 1 Oct 2020, Jonathan Wakely via Gcc wrote: > > > The problem is that the script doesn't check whether the new_object is > > 0. > > > > I think we want something like this: > > > > --- update_hook 2020-09-02 23:30:25.074884982 +000

Re: GCC's Git update_hook doesn't support deleting branches

2020-10-01 Thread Joseph Myers
On Thu, 1 Oct 2020, Jonathan Wakely via Gcc wrote: > The problem is that the script doesn't check whether the new_object is > 0. > > I think we want something like this: > > --- update_hook 2020-09-02 23:30:25.074884982 + > +++ /tmp/update_hook2020-10-01 13:57:14.681656258 +

GCC's Git update_hook doesn't support deleting branches

2020-10-01 Thread Jonathan Wakely via Gcc
You get a nasty error like: $ git push origin -d refs/users/redi/heads/calendar remote: *** Update rejected by this repository's hooks.update-hook script remote: *** (/git/gcc.git/hooks-bin/update_hook): remote: *** fatal: bad object remote: *** Traceback (