Could we `Clone()` here instead, and then `Checkout()` if `committish` is not `null`?