fixed communication between post-commit hook and server