tag: add repository argument to deref_tag
[gitweb.git] / builtin / diff.c
index 7971530b9b3034f3af326cc035978927a2c18c73..361a3c3ed38769f798b83933755fed84724ce43c 100644 (file)
@@ -402,7 +402,7 @@ int cmd_diff(int argc, const char **argv, const char *prefix)
                int flags = (obj->flags & UNINTERESTING);
                if (!obj->parsed)
                        obj = parse_object(the_repository, &obj->oid);
-               obj = deref_tag(obj, NULL, 0);
+               obj = deref_tag(the_repository, obj, NULL, 0);
                if (!obj)
                        die(_("invalid object '%s' given."), name);
                if (obj->type == OBJ_COMMIT)