checkout-index needs a working tree