repository.c: replace hold_locked_index() with repo_hold_locked_index()
[git/git.git] / wt-status.c
index 0fe3bcd..becf78b 100644 (file)
@@ -2375,7 +2375,7 @@ int require_clean_work_tree(struct repository *r,
        struct lock_file lock_file = LOCK_INIT;
        int err = 0, fd;
 
-       fd = hold_locked_index(&lock_file, 0);
+       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);