sha1_file: convert sha1_object_info* to object_id
[gitweb.git] / builtin / fetch.c
index aeafe63ba6e4b09eb5d7e61387f1bfb04ee67e47..90bb659390e6df7fb51e153de662761ebe33a414 100644 (file)
@@ -637,7 +637,7 @@ static int update_local_ref(struct ref *ref,
        struct branch *current_branch = branch_get(NULL);
        const char *pretty_ref = prettify_refname(ref->name);
 
-       type = sha1_object_info(ref->new_oid.hash, NULL);
+       type = oid_object_info(&ref->new_oid, NULL);
        if (type < 0)
                die(_("object %s not found"), oid_to_hex(&ref->new_oid));