"Adam \"Sinus\" Skawiński" <adam.skawinski@xxxxxxxxx> 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.