X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=reachable.c;h=ffb976c33c6936a7b178c7c478bcf4cd2840d472;hb=4c2eb06419e95554b3530c618b55c5cdc687f621;hp=191ebe3e6a99d26913a510967a9545f53db58bc8;hpb=e43aab778c72250e11eb00e31dc6be90072a1637;p=thirdparty%2Fgit.git diff --git a/reachable.c b/reachable.c index 191ebe3e6a..ffb976c33c 100644 --- a/reachable.c +++ b/reachable.c @@ -11,6 +11,7 @@ #include "list-objects.h" #include "packfile.h" #include "worktree.h" +#include "object-store.h" struct connectivity_progress { struct progress *progress; @@ -77,7 +78,7 @@ static void add_recent_object(const struct object_id *oid, * later processing, and the revision machinery expects * commits and tags to have been parsed. */ - type = sha1_object_info(oid->hash, NULL); + type = oid_object_info(the_repository, oid, NULL); if (type < 0) die("unable to get object info for %s", oid_to_hex(oid));