Re: receive.denyCurrentBranch=updateInstead won't update the repo
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 17, 2023, 21:09 UTC
- Message-ID
- <xmqqfs5mgs8v.fsf@gitster.g>
- In-Reply-To
- <CAGE71k3Ccm3hBrfNgXFqO9Zk0V9FkoskgD1ViJ6eSakxdBuqQQ@mail.gmail.com>
"Adam \"Sinus\" Skawiński" <adam.skawinski@sinpi.net> writes:
> needed. I made it output some lines and exit with code 1, so it should > abort after producing the output - and yet the pushes come through.
Did the output come back to your client side? "git push -v" should show.
If there is no need to update (i.e. after a successful push, you try to push the same thing), the hook would not even run, so you may need to rewind the "server" side while experimenting.