[Product-Developers] Proposal: adding a pre-commit hook in the collective

Andreas Jung lists at zopyx.com
Wed Jan 2 14:53:25 UTC 2008



--On 2. Januar 2008 04:53:30 -0800 Tarek Ziadé <ziade.tarek at gmail.com> 
wrote:

>
> Hello,
>
> I have found some places in the collective where the code has some CR
> ending line (^M) and some tabulation. It has broken some products lately
> with indentation problems, (LinguaPlone, PloneBoard IIRC)
>
> I would like to suggest adding a pre-commit hook in the collective (and in
> other repositories if it's not the case) to prevent from this. I don't
> think it is overkill to do this, especially in such repositories where a
> lot of people work.
>
> As a result, this would pop an error on commits when such characters are
> found.  I have set such a hook in our repository, it's quite simple (see
> http://tarekziade.wordpress.com/2006/11/01/protecting-a-python-svn-code-b
> ase-with-the-pre-commit-hook with a small variation: it also display line
> numbers now)
>
>

+2

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20080102/303dd263/attachment.asc>


More information about the Product-Developers mailing list