Re: [PATCH v2] Run global hooks from the directory at hooks.dir
- From
Brian Collins <bricollins@gmail.com>
- Date
- Nov 8, 2010, 13:59 UTC
- Message-ID
- <AANLkTikJACZxf6socuvXFMu7WUZ0y+s0ZRA2kYEKb19q@mail.gmail.com>
- In-Reply-To
- <AANLkTi=kFuoaV5Ur_a7FJPg_oUs3svOpq=wEVhdpuoai@mail.gmail.com>
> I'm not in favor of this change, as a number of alternatives were > suggested in the thread you cite (Gmane: > http://thread.gmane.org/gmane.comp.version-control.git/150141).
The alternatives suggested need to be applied individually to each repository. This can be problematic because you may want repository-specific scripts as well. Then when you update your global hooks you have to deal with merging with your repository-specific scripts. Using templates is not ideal because it is system-wide and they still need to be renamed for every clone or init.
> A few hints, just in case you deploy this code:
Thanks, I have fixed those issues.