read-cache.c: replace update_index_if_able with repo_&
[gitweb.git] / wt-status.c
index becf78b04f50608a0f0dadc4a10b8b6300ddbf1d..1f564b12d259956fa71fb0dce78c6e4c3c006897 100644 (file)
@@ -2378,7 +2378,7 @@ int require_clean_work_tree(struct repository *r,
        fd = repo_hold_locked_index(r, &lock_file, 0);
        refresh_index(r->index, REFRESH_QUIET, NULL, NULL, NULL);
        if (0 <= fd)
-               update_index_if_able(r->index, &lock_file);
+               repo_update_index_if_able(r, &lock_file);
        rollback_lock_file(&lock_file);
 
        if (has_unstaged_changes(r, ignore_submodules)) {