diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-06-13 10:40:47 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-06-13 10:41:39 +0200 |
commit | 8f45f78e8202a0313fcd0c21c50f3fc456f9c52c (patch) | |
tree | 27550bc1df9489f85e30dd44ba7cc57674aa0e62 /.git-hooks | |
parent | 8b4b1d502cb2f67c5e7e479036391e759df1ae0b (diff) |
Catch funny line-ends in pre-commit hook.
Change-Id: I38836a9b3c9fb8ab7b71e157bba8a803eb4d3905
Diffstat (limited to '.git-hooks')
-rwxr-xr-x | .git-hooks/pre-commit | 4 |
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); |