Skip to content

Commit 5f25b62

Browse files
committed
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 <[email protected]>
1 parent f67d2e8 commit 5f25b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/rev-list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static void show_object(struct object *obj, const struct name_path *path, const
182182
*/
183183
const char *ep = strchr(name, '\n');
184184

185-
finish_object(obj, path, name);
185+
finish_object(obj, path, component);
186186
if (ep) {
187187
printf("%s %.*s\n", sha1_to_hex(obj->sha1),
188188
(int) (ep - name),

0 commit comments

Comments
 (0)