Updated the post receive hook code