]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sha1-file.c
sha1-file: support OBJECT_INFO_FOR_PREFETCH
[thirdparty/git.git] / sha1-file.c
index 494606f7716923468e6f838dae0486a61b454101..ad02649124bb817360d6cd1ab9b354fd3243cdd7 100644 (file)
@@ -1370,7 +1370,8 @@ int oid_object_info_extended(struct repository *r, const struct object_id *oid,
 
                /* Check if it is a missing object */
                if (fetch_if_missing && repository_format_partial_clone &&
-                   !already_retried && r == the_repository) {
+                   !already_retried && r == the_repository &&
+                   !(flags & OBJECT_INFO_FOR_PREFETCH)) {
                        /*
                         * TODO Investigate having fetch_object() return
                         * TODO error/success and stopping the music here.