Merge branch 'es/grep-require-name-when-needed'
[gitweb.git] / sha1-file.c
index bcd9470bce089012ab942973cd841262d35749eb..888b6024d5de050753765e37b65ea0521d91f9fd 100644 (file)
@@ -1378,7 +1378,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.