Fix checkout-head-revision command