fixed api changes for index.c

11d9f6b304 in libgit2 changed api for git_index_find()
variable renaming