]> git.ipfire.org Git - thirdparty/git.git/blobdiff - unpack-trees.c
cocci: apply the "promisor-remote.h" part of "the_repository.pending"
[thirdparty/git.git] / unpack-trees.c
index 3d05e45a279b0b0231da5d9a5829c76818af18bd..b82ad7e45d0115089902a8afaa051c3f5c67f414 100644 (file)
@@ -458,7 +458,7 @@ static int check_updates(struct unpack_trees_options *o,
        if (should_update_submodules())
                load_gitmodules_file(index, &state);
 
-       if (has_promisor_remote())
+       if (repo_has_promisor_remote(the_repository))
                /*
                 * Prefetch the objects that are to be checked out in the loop
                 * below.