edited post-commit hook