Commit hook now detects empty commits