From 5f25b6299d3e9853cf1f43734228d6e25d8f3415 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 17 Aug 2011 14:30:33 -0700 Subject: [PATCH] rev-list: fix finish_object() call The callback to traverse_commit_list() are to take linked name_path and a string for the last path component. If the callee used its parameters, it would have seen duplicated leading paths. In this particular case, the callee does not use this argument but that is not a reason to leave the call broken. Signed-off-by: Junio C Hamano --- builtin/rev-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/rev-list.c b/builtin/rev-list.c index 56727e8c1..d78927930 100644 --- a/builtin/rev-list.c +++ b/builtin/rev-list.c @@ -182,7 +182,7 @@ static void show_object(struct object *obj, const struct name_path *path, const */ const char *ep = strchr(name, '\n'); - finish_object(obj, path, name); + finish_object(obj, path, component); if (ep) { printf("%s %.*s\n", sha1_to_hex(obj->sha1), (int) (ep - name), -- 2.26.2