]> git.ipfire.org Git - thirdparty/git.git/blobdiff - connected.c
Merge branch 'ec/fetch-mark-common-refs-trace2'
[thirdparty/git.git] / connected.c
index 36c4e5dedb6a7bc76e29bc5e9f8f44f12b7c7057..c337f5f7f4dd0797a8dd3c4e54fb77fd1b4f6df4 100644 (file)
@@ -62,7 +62,8 @@ int check_connected(oid_iterate_fn fn, void *cb_data,
                 * received the objects pointed to by each wanted ref.
                 */
                do {
-                       if (!repo_has_object_file(the_repository, &oid))
+                       if (!repo_has_object_file_with_flags(the_repository, &oid,
+                                                            OBJECT_INFO_SKIP_FETCH_OBJECT))
                                return 1;
                } while (!fn(cb_data, &oid));
                return 0;