X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=sha1-file.c;h=0299fdd5161a59bf88d9f2c41a83c7e6ecd4cc2b;hb=31f5256c82a36edea3ea2f91e5171e3472878915;hp=494606f7716923468e6f838dae0486a61b454101;hpb=87c9831df0f5ae4e96ab2e5b9b5b50505baa8cf4;p=thirdparty%2Fgit.git diff --git a/sha1-file.c b/sha1-file.c index 494606f771..0299fdd516 100644 --- a/sha1-file.c +++ b/sha1-file.c @@ -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.