Re: Is there any way to make hooks part of the repository?
- From
- Hilco Wijbenga <hilco.wijbenga@gmail.com>
- Date
- May 1, 2012, 21:07 UTC
- Message-ID
- <CAE1pOi1Dpjow8mkwtPo2o1Zo9rkk6=hhpLqErG1XwTcn=un17A@mail.gmail.com>
- In-Reply-To
- <86r4v3mxf7.fsf@red.stonehenge.com>
On 1 May 2012 13:57, Randal L. Schwartz <merlyn@stonehenge.com> wrote:
Show 10 quoted lines
>>>>>> "Junio" == Junio C Hamano <gitster@pobox.com> writes: > > Junio> By design. Do you want me to include "rm -fr ~hilco" in some hook of > Junio> git.git repository? > > This just came up yesterday at $PRIMARY_CLIENT. One idea we kicked > around was having a convention for storing the hooks-to-be-populated in > ".githooks" in the repository tree, and then having clone notice that > and offer to install them directly if from a trusted source, or at least > move them into a disabled state in .git/hooks otherwise.
I guess it would have to be more than just clone. You are quite likely to update/add hooks later on.