receive-pack: simplify run_update_post_hook()