diff options
author | Junio C Hamano <junkio@cox.net> | 2006-06-18 21:48:32 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-18 21:48:32 -0700 |
commit | 42d504248830452275dbe1c864f0b1771d7b1a05 (patch) | |
tree | 011c7f094bfcdd41f510461c720485c8fbf1791e /fsck-objects.c | |
parent | Merge branch 'master' into next (diff) | |
parent | Support for extracting configuration from different files (diff) | |
download | tgif-42d504248830452275dbe1c864f0b1771d7b1a05.tar.xz |
Merge branch 'pb/config' into next
* pb/config:
Support for extracting configuration from different files
Fix PPC SHA1 routine for large input buffers
Make t8001-annotate and t8002-blame more portable
Remove "refs" field from "struct object"
Make release tarballs friendlier to older tar versions
Diffstat (limited to 'fsck-objects.c')
-rw-r--r-- | fsck-objects.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fsck-objects.c b/fsck-objects.c index 2b1aab488f..769bb2a6a7 100644 --- a/fsck-objects.c +++ b/fsck-objects.c @@ -64,6 +64,7 @@ static void check_connectivity(void) /* Look up all the requirements, warn about missing objects.. */ for (i = 0; i < obj_allocs; i++) { + const struct object_refs *refs; struct object *obj = objs[i]; if (!obj) @@ -78,8 +79,8 @@ static void check_connectivity(void) continue; } - if (obj->refs) { - const struct object_refs *refs = obj->refs; + refs = lookup_object_refs(obj); + if (refs) { unsigned j; for (j = 0; j < refs->count; j++) { struct object *ref = refs->ref[j]; |