added check for commit with wrong newlines