All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Cc: Petr Baudis <pasky@suse.cz>, Josh England <jjengla@sandia.gov>
Subject: Re: cloning/pulling hooks
Date: Wed, 29 Aug 2007 10:05:07 +0100	[thread overview]
Message-ID: <200708291005.08795.andyparkins@gmail.com> (raw)
In-Reply-To: <20070828172709.GB1219@pasky.or.cz>

On Tuesday 2007 August 28, Petr Baudis wrote:

> On Tue, Aug 28, 2007 at 06:46:48PM CEST, Josh England wrote:
> > When cloning an existing repository, is there any way to grab
> > the .git/hooks files as part of the clone (or pull)?
>
>   No. You can add the appropriate instructions to instructions how to
> clone the repository, users have to install the hooks manually.
>
>   Now I went on with a large writeup on considerations for implementing
> such a feature (including security), but then I scrapped it. What would
> you like to use these hooks for? Really, perhaps it's best to instead do
> any "post-commit" etc. checks at the push time instead of the commit
> time, so that developers can still freely commit locally, e.g. I
> sometimes do temporary commits on side branches of various work in
> progress changes, then randomly merge them together etc. before I come
> up with the final sequence of commits that I push out.

I've not done it for myself yet, but I had an idea about making an independent 
branch in the repository itself containing the hook scripts for that project.  
That way, the cloners get the scripts but still have to knowingly install 
them themselves.

If you were feeling particularly brave, you could check that branch out 
in .git/hooks.


Andy


-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com

       reply	other threads:[~2007-08-29  9:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1188319608.6106.63.camel@beauty>
     [not found] ` <20070828172709.GB1219@pasky.or.cz>
2007-08-29  9:05   ` Andy Parkins [this message]
2007-08-29  9:52     ` cloning/pulling hooks Petr Baudis
2007-08-29 12:56       ` Andy Parkins
2007-08-29 13:21         ` Johannes Schindelin
2007-08-29 14:28           ` Andy Parkins
2007-08-29 20:27         ` Alex Riesen
2007-08-29 13:18       ` Benjamin Collins
2007-08-29 13:39         ` Petr Baudis
2007-08-29 13:49         ` Johannes Schindelin
2007-08-29 13:54           ` Petr Baudis
2007-08-29 14:06             ` Johannes Schindelin
2007-08-29 14:19               ` Petr Baudis
2007-08-29 14:31                 ` Johannes Schindelin
2007-08-29 14:41                   ` Petr Baudis
2007-08-29 14:56                     ` Johannes Schindelin
2007-08-29 20:35                       ` Alex Riesen
2007-08-29 19:45         ` Junio C Hamano

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=200708291005.08795.andyparkins@gmail.com \
    --to=andyparkins@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=jjengla@sandia.gov \
    --cc=pasky@suse.cz \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.