]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sha1-file.c
sha1-file: split OBJECT_INFO_FOR_PREFETCH
[thirdparty/git.git] / sha1-file.c
index 494606f7716923468e6f838dae0486a61b454101..0299fdd5161a59bf88d9f2c41a83c7e6ecd4cc2b 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_SKIP_FETCH_OBJECT)) {
                        /*
                         * TODO Investigate having fetch_object() return
                         * TODO error/success and stopping the music here.