diff options
Diffstat (limited to 'builtin/mktag.c')
-rw-r--r-- | builtin/mktag.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/mktag.c b/builtin/mktag.c index 9f5a50a8fd..6fb7dc8578 100644 --- a/builtin/mktag.c +++ b/builtin/mktag.c @@ -1,5 +1,7 @@ #include "builtin.h" #include "tag.h" +#include "replace-object.h" +#include "object-store.h" /* * A signature file has a very simple fixed format: four lines @@ -24,7 +26,7 @@ static int verify_object(const struct object_id *oid, const char *expected_type) enum object_type type; unsigned long size; void *buffer = read_object_file(oid, &type, &size); - const struct object_id *repl = lookup_replace_object(oid); + const struct object_id *repl = lookup_replace_object(the_repository, oid); if (buffer) { if (type == type_from_string(expected_type)) |