X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fmktag.c;h=640ab64f418208842ae3901ce37ac8918740037e;hb=60e5eee0f1a70e09f28d1e55b3aaddb59eeea887;hp=324a267163d758b5dea51405265ae89042a657ad;hpb=0f51322a6be0d31f299df7becad438e8edfb608b;p=git.git diff --git a/builtin/mktag.c b/builtin/mktag.c index 324a26716..640ab64f4 100644 --- a/builtin/mktag.c +++ b/builtin/mktag.c @@ -23,8 +23,8 @@ static int verify_object(const unsigned char *sha1, const char *expected_type) int ret = -1; enum object_type type; unsigned long size; - const unsigned char *repl; - void *buffer = read_sha1_file_repl(sha1, &type, &size, &repl); + void *buffer = read_sha1_file(sha1, &type, &size); + const unsigned char *repl = lookup_replace_object(sha1); if (buffer) { if (type == type_from_string(expected_type))