Restoring pre-commit hook that has been deleted accidentally.

Refs #9502