Set HEAD before triggering post_receive