Git pre-commit hook. [ticket: 2222]