From: Jeff King <peff@peff.net>
To: Alf Clement <alf.clement@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git hooks to run something
Date: Wed, 25 Mar 2009 07:25:08 -0400 [thread overview]
Message-ID: <20090325112507.GA4437@coredump.intra.peff.net> (raw)
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
prev parent reply other threads:[~2009-03-25 11:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-24 10:56 git hooks to run something Alf Clement
2009-03-24 11:15 ` Jeff King
[not found] ` <556d90580903250333l496520ao5fde64fb08faf9ae@mail.gmail.com>
2009-03-25 11:25 ` Jeff King [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090325112507.GA4437@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=alf.clement@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).