When running `git_index_add_all`, we should write the index to disk so that we can re-read it safely during status.