Update git_index_read call to match new libgit2

I'm not sure that this is the right behavior (doesn't force reading the
index) but tests pass.