Add commit hook