.git-hooks/pre-commit |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 8f45f78e8202a0313fcd0c21c50f3fc456f9c52c
Author: Thorsten Behrens <[email protected]>
Date:   Sat Jun 13 10:40:47 2015 +0200

    Catch funny line-ends in pre-commit hook.
    
    Change-Id: I38836a9b3c9fb8ab7b71e157bba8a803eb4d3905

diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit
index 6933198..e7b647e 100755
--- a/.git-hooks/pre-commit
+++ b/.git-hooks/pre-commit
@@ -68,6 +68,10 @@ sub check_whitespaces($)
             {
                 bad_line("trailing whitespace", $_ , $src_limited);
             }
+            if (/\r$/)
+            {
+                bad_line("DOS lineends", $_ , $src_limited);
+            }
             if (/\s*   /)
             {
                 bad_line("indent with Tab", $_, $src_limited);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to