Set HEAD before triggering post_receive

This should build the pushed branch rather than always trying to build master.