object: convert parse_object* to take struct object_id
[git/git.git] / builtin / prune.c
index 96dca7d..5363660 100644 (file)
@@ -127,7 +127,8 @@ int cmd_prune(int argc, const char **argv, const char *prefix)
                const char *name = *argv++;
 
                if (!get_oid(name, &oid)) {
-                       struct object *object = parse_object_or_die(oid.hash, name);
+                       struct object *object = parse_object_or_die(&oid,
+                                                                   name);
                        add_pending_object(&revs, object, "");
                }
                else