Make our use of git checkout-index --temp-mode actually *work*.