Re: git hooks to run something
- From
Jeff King <peff@peff.net>
- Date
- Mar 25, 2009, 11:25 UTC
- Message-ID
- <20090325112507.GA4437@coredump.intra.peff.net>
- In-Reply-To
- <556d90580903250333l496520ao5fde64fb08faf9ae@mail.gmail.com>
[re-adding git@vger to cc; please keep questions on-list so that others can also help to answer]
On Wed, Mar 25, 2009 at 11:33:39AM +0100, Alf Clement wrote:
> is there a way to push a modified hook script with the repository when > I push it to a server? > And how to get it with pull?
No; for security reasons, no code (including hooks) from remote repositories is automatically run. The usual method is to include the hook in your repository and copy it into place after cloning.
-Peff