diff options
Diffstat (limited to 'reachable.c')
-rw-r--r-- | reachable.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/reachable.c b/reachable.c index 4cfd0dec70..43616d49c7 100644 --- a/reachable.c +++ b/reachable.c @@ -22,7 +22,8 @@ static void update_progress(struct connectivity_progress *cp) display_progress(cp->progress, cp->count); } -static int add_one_ref(const char *path, const unsigned char *sha1, int flag, void *cb_data) +static int add_one_ref(const char *path, const struct object_id *oid, + int flag, void *cb_data) { struct rev_info *revs = (struct rev_info *)cb_data; struct object *object; @@ -32,7 +33,7 @@ static int add_one_ref(const char *path, const unsigned char *sha1, int flag, vo return 0; } - object = parse_object_or_die(sha1, path); + object = parse_object_or_die(oid->hash, path); add_pending_object(revs, object, ""); return 0; |