rev-list: fix finish_object() call
[gitweb.git] / builtin / rev-list.c
index 56727e8c1d9d87fe3e3bf3919ba86d27d0735758..d789279309ed544dd31520fffea55494f4cc9eff 100644 (file)
@@ -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),