sha1-name.c: remove implicit dependency on the_index
[gitweb.git] / builtin / describe.c
index cc118448ee00d2c4336422afbad1799babfb5783..bc97e50650a39e03448c1c4e5dd0e8f880b9befc 100644 (file)
@@ -634,7 +634,7 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
                                      NULL, NULL, NULL);
                        fd = hold_locked_index(&index_lock, 0);
                        if (0 <= fd)
-                               update_index_if_able(&the_index, &index_lock);
+                               repo_update_index_if_able(the_repository, &index_lock);
 
                        repo_init_revisions(the_repository, &revs, prefix);
                        argv_array_pushv(&args, diff_index_args);