Skip to content

Commit 87cefaa

Browse files
Linus TorvaldsJunio C Hamano
authored andcommitted
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 <[email protected]>
1 parent 2befe6f commit 87cefaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin-rev-list.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ static struct object_list **process_tree(struct tree *tree,
135135

136136
while (tree_entry(&desc, &entry)) {
137137
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);
139139
else
140-
p = process_blob(lookup_blob(entry.sha1), p, &me, name);
140+
p = process_blob(lookup_blob(entry.sha1), p, &me, entry.path);
141141
}
142142
free(tree->buffer);
143143
tree->buffer = NULL;

0 commit comments

Comments
 (0)