git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Jeff King
Message 5 of 5 in “Git extra hook, pre-upload”
  1. Xheroz 128Dec 30, 2018
  2. Ævar Arnfjörð BjarmasonDec 30, 2018
  3. Junio C HamanoJan 2, 2019
  4. Jeff KingJan 3, 2019
  5. Jeff KingJan 6, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.