read-cache.c: replace update_index_if_able with repo_&
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
e1ff0a32e4
commit
1b0d968b34
@ -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);
|
||||
|
Reference in New Issue
Block a user