Re: Git extra hook, pre-upload
- From
Jeff King <peff@peff.net>
- Date
- Jan 6, 2019, 06:07 UTC
- Message-ID
- <20190106060748.GA3935@sigill.intra.peff.net>
- In-Reply-To
- <A842150D-2A45-4ABB-9B0F-DF516F7A2737@gmail.com>
[re-add git@vger cc]
On Sat, Jan 05, 2019 at 01:47:11PM +0900, Xheroz 128 wrote:
Show 6 quoted lines
> Thank you for all your replies. I have read the thread from 2011 and > understand the reason of the insecure part using pre and post upload > hooks. > But for my project I would still like to use pre-upload hook. But I do > not know how to enable the ALLOW_INSECURE_HOOKS in my system. How to > configure it?
We never actually merged that patch, so there is no such build-time knob in Git. I.e., you can either use the uploadpack.packObjectsHook feature, or you will have to make a custom patch yourself.
-Peff