fetch-object: make functions return an error code
[gitweb.git] / sha1-file.c
index ed5c50dac427f2f3aa2b9b7b203bf2355049b163..819d32cdb8dbe6d2adddb1b4b69a1639db594471 100644 (file)
@@ -1379,10 +1379,10 @@ 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 &&
-                   !(flags & OBJECT_INFO_FOR_PREFETCH)) {
+                   !(flags & OBJECT_INFO_SKIP_FETCH_OBJECT)) {
                        /*
-                        * TODO Investigate having fetch_object() return
-                        * TODO error/success and stopping the music here.
+                        * TODO Investigate checking fetch_object() return
+                        * TODO value and stopping on error here.
                         * TODO Pass a repository struct through fetch_object,
                         * such that arbitrary repositories work.
                         */