Merge branch 'nd/travis-gcc-8'
[gitweb.git] / builtin / fetch.c
index 5a6f6b2dcae1ca36ac74a543202e89bd22ccf198..1f037e8e4b8ba41b66314c5dd9633e0164f86c0e 100644 (file)
@@ -656,7 +656,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 = oid_object_info(&ref->new_oid, NULL);
+       type = oid_object_info(the_repository, &ref->new_oid, NULL);
        if (type < 0)
                die(_("object %s not found"), oid_to_hex(&ref->new_oid));