Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_file: convert read_sha1_file to struct object_id
[gitweb.git]
/
builtin
/
mktag.c
diff --git
a/builtin/mktag.c
b/builtin/mktag.c
index 810b24bef38b434c59718a6ac2883b7cfaafcd21..cfb777b3c8efdc8aa28fd2cfe85e96cdfd0aa585 100644
(file)
--- a/
builtin/mktag.c
+++ b/
builtin/mktag.c
@@
-23,7
+23,7
@@
static int verify_object(const struct object_id *oid, const char *expected_type)
int ret = -1;
enum object_type type;
unsigned long size;
- void *buffer = read_
sha1_file(oid->hash
, &type, &size);
+ void *buffer = read_
object_file(oid
, &type, &size);
const unsigned char *repl = lookup_replace_object(oid->hash);
if (buffer) {