diff options
author | Linus Torvalds <torvalds@osdl.org> | 2006-06-05 11:44:36 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-05 14:54:17 -0700 |
commit | 87cefaaff958e30204a21757012a46883175c00f (patch) | |
tree | 1ef8165b8f76e0895ed26067336b49b034cf3d30 /builtin-rev-list.c | |
parent | 2befe6feb99da9fb73b9e8c218b414419ef947ec (diff) | |
download | git-87cefaaff958e30204a21757012a46883175c00f.tar.gz git-87cefaaff958e30204a21757012a46883175c00f.tar.xz |
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>
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r-- | builtin-rev-list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c index 17c04b962..e88562425 100644 --- a/builtin-rev-list.c +++ b/builtin-rev-list.c @@ -135,9 +135,9 @@ static struct object_list **process_tree(struct tree *tree, while (tree_entry(&desc, &entry)) { if (S_ISDIR(entry.mode)) - p = process_tree(lookup_tree(entry.sha1), p, &me, name); + p = process_tree(lookup_tree(entry.sha1), p, &me, entry.path); else - p = process_blob(lookup_blob(entry.sha1), p, &me, name); + p = process_blob(lookup_blob(entry.sha1), p, &me, entry.path); } free(tree->buffer); tree->buffer = NULL; |