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
/
reflog.c
diff --git
a/builtin/reflog.c
b/builtin/reflog.c
index ac3dcd7a51170cd9146d044f6ab70203e6591507..25f7c5ef0b8887d5a1b5003e7a6d02da081aa7c9 100644
(file)
--- a/
builtin/reflog.c
+++ b/
builtin/reflog.c
@@
-74,7
+74,7
@@
static int tree_is_complete(const struct object_id *oid)
if (!tree->buffer) {
enum object_type type;
unsigned long size;
- void *data = read_
sha1_file(oid->hash
, &type, &size);
+ void *data = read_
object_file(oid
, &type, &size);
if (!data) {
tree->object.flags |= INCOMPLETE;
return 0;