summaryrefslogtreecommitdiff
path: root/.git-hooks/pre-commit
diff options
context:
space:
mode:
Diffstat (limited to '.git-hooks/pre-commit')
-rwxr-xr-x.git-hooks/pre-commit4
1 files changed, 4 insertions, 0 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit
index 693319826b66..e7b647eeef33 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);