Re: Is there any way to make hooks part of the repository?
- From
Randal L. Schwartz <merlyn@stonehenge.com>
- Date
- May 1, 2012, 20:57 UTC
- Message-ID
- <86r4v3mxf7.fsf@red.stonehenge.com>
- In-Reply-To
- <7vipgf8wve.fsf@alter.siamese.dyndns.org>
>>>>> "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.
-- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion