Re: HowTo distribute a hook with the reposity.
- From
Jeff King <peff@peff.net>
- Date
- Dec 28, 2016, 08:52 UTC
- Message-ID
- <20161228085248.tu54e6ug5fvpr26l@sigill.intra.peff.net>
- In-Reply-To
- <6801f971-418d-18c9-8002-9c2f7b8c8008@gmail.com>
On Wed, Dec 28, 2016 at 08:42:25AM +0000, John P. Hartmann wrote:
> This project is hosted on github. If I put the hook into the repository > manually (if I can; I don't know that), is it true that the hook would be > distributed on a clone action, but not on a pull?
I'm not sure what you mean by "into the repository". If you mean "into the .git directory", then no, you can't do that. Git will not add ".git" directory contents to a repository, you cannot manipulate the contents of ".git" directories on GitHub, and a client wouldn't ever look at them on clone or fetch anyway.
Did you mean something else?
-Peff