clone: Supply the right commit hash to post-checkout when -b is used