Re: cloning/pulling hooks
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 29, 2007, 13:49 UTC
- Message-ID
- <Pine.LNX.4.64.0708291446011.28586@racer.site>
- In-Reply-To
- <b3889dff0708290618s79cffdb5nb6cc69d14efa8b9@mail.gmail.com>
Hi,
On Wed, 29 Aug 2007, Benjamin Collins wrote:
> Of course, I understand why it's not already like that, particularly > given the context of Linux development practices.
It has nothing to do with Linux development practices. There are fundamental reasons why we don't fetch hooks:
- they are _not_ part of the repository; just look at the .gitattributes-in-the-index-but-not-worktree issue to find out why,
- it is _private_ data, just like the config. The client has _no business_ to read them, let alone fetch them,
- if you have the hooks on different machines, chances are that you need a mechanism to update the hooks... This naturally suggests putting the hooks into their own branch.
Probably there are way more reasons not to allow such a thing as fetching hooks.
Ciao, Dscho