rev-list: fix process_tree() conversion.
The tree-walking conversion of the "process_tree()" function broke packing by using an unrelated variable from outer scope. Signed-off-by: Junio C Hamano <junkio@cox.net>
Linus Torvalds committed
Jun 5, 2006 at 11:44 UTC
87cefaaff958e30204a21757012a46883175c00f
1 file changed
+2
-2
builtin-rev-list.c
+2
-2
@@ -135,9 +135,9 @@ static struct object_list **process_tree(struct tree *tree,
135
136
while (tree_entry(&desc, &entry)) {
137
if (S_ISDIR(entry.mode))
138
- p = process_tree(lookup_tree(entry.sha1), p, &me, name);
138
+ p = process_tree(lookup_tree(entry.sha1), p, &me, entry.path);
139
else
140
- p = process_blob(lookup_blob(entry.sha1), p, &me, name);
140
+ p = process_blob(lookup_blob(entry.sha1), p, &me, entry.path);
141
}
142
free(tree->buffer);
143
tree->buffer = NULL;