shallow: convert shallow registration functions to object_id
[gitweb.git] / builtin / pack-objects.c
index 0fe35d1b5aebd74116d66d5414bdabf19baf7d97..4770708063e73646cceadf33e3766a2d3a78f338 100644 (file)
@@ -2777,10 +2777,10 @@ static void get_object_list(int ac, const char **av)
                                continue;
                        }
                        if (starts_with(line, "--shallow ")) {
-                               unsigned char sha1[20];
-                               if (get_sha1_hex(line + 10, sha1))
+                               struct object_id oid;
+                               if (get_oid_hex(line + 10, &oid))
                                        die("not an SHA-1 '%s'", line + 10);
-                               register_shallow(sha1);
+                               register_shallow(&oid);
                                use_bitmap_index = 0;
                                continue;
                        }