sha1-name.c: remove implicit dependency on the_index
[gitweb.git] / builtin / diff.c
index f0393bba23a7d95c67470508a6b63e4e41e8d46b..ec78920ee24fccd47a20d1b7b93a619695c1be25 100644 (file)
@@ -212,7 +212,7 @@ static void refresh_index_quietly(void)
        discard_cache();
        read_cache();
        refresh_cache(REFRESH_QUIET|REFRESH_UNMERGED);
-       update_index_if_able(&the_index, &lock_file);
+       repo_update_index_if_able(the_repository, &lock_file);
 }
 
 static int builtin_diff_files(struct rev_info *revs, int argc, const char **argv)