]> git.ipfire.org Git - thirdparty/git.git/blobdiff - object-file.c
Merge branch 'jt/partial-clone-submodule-1'
[thirdparty/git.git] / object-file.c
index b9c3219793f8666c2578b328cd4a1c806dae3c7a..ecca5a8da00f14d2bdbd8c56ced17aacde728ad7 100644 (file)
@@ -1584,15 +1584,12 @@ static int do_oid_object_info_extended(struct repository *r,
                }
 
                /* Check if it is a missing object */
-               if (fetch_if_missing && has_promisor_remote() &&
-                   !already_retried && r == the_repository &&
+               if (fetch_if_missing && repo_has_promisor_remote(r) &&
+                   !already_retried &&
                    !(flags & OBJECT_INFO_SKIP_FETCH_OBJECT)) {
                        /*
                         * TODO Investigate checking promisor_remote_get_direct()
                         * TODO return value and stopping on error here.
-                        * TODO Pass a repository struct through
-                        * promisor_remote_get_direct(), such that arbitrary
-                        * repositories work.
                         */
                        promisor_remote_get_direct(r, real, 1);
                        already_retried = 1;