Merge branch 'sb/hashmap-customize-comparison' into sb/diff-color-move
[gitweb.git] / builtin / prune.c
index 8dcfecde0f363e05fc2b95db3d8fce04d665ecf8..f0e2bff04c797b630616bddaefa742e736a423a9 100644 (file)
@@ -123,11 +123,12 @@ int cmd_prune(int argc, const char **argv, const char *prefix)
                die(_("cannot prune in a precious-objects repo"));
 
        while (argc--) {
-               unsigned char sha1[20];
+               struct object_id oid;
                const char *name = *argv++;
 
-               if (!get_sha1(name, sha1)) {
-                       struct object *object = parse_object_or_die(sha1, name);
+               if (!get_oid(name, &oid)) {
+                       struct object *object = parse_object_or_die(&oid,
+                                                                   name);
                        add_pending_object(&revs, object, "");
                }
                else