X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=wt-status.c;h=1f564b12d259956fa71fb0dce78c6e4c3c006897;hb=0aa6bce7365c97ab1e26791ee03b3a83f7e784dd;hp=0fe3bcd4cd057b72a61cfc6d46e892ac890f0634;hpb=02bf766cc5d7580ce17dfab36fce976bfd06585b;p=thirdparty%2Fgit.git diff --git a/wt-status.c b/wt-status.c index 0fe3bcd4cd..1f564b12d2 100644 --- a/wt-status.c +++ b/wt-status.c @@ -2375,10 +2375,10 @@ 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); + repo_update_index_if_able(r, &lock_file); rollback_lock_file(&lock_file); if (has_unstaged_changes(r, ignore_submodules)) {