Skip to content

Commit

Permalink
read-tree: shadowed variable fix.
Browse files Browse the repository at this point in the history
Recent changes to built-ins broke committing from subdirectory,
because the unused parameter "prefix" shadowed a global variable.

Spotted by Jeff King.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Aug 3, 2006
1 parent 47781bf commit a91af79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-read-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ static const char read_tree_usage[] = "git-read-tree (<sha> | [[-m [--aggressive

static struct lock_file lock_file;

int cmd_read_tree(int argc, const char **argv, const char *prefix)
int cmd_read_tree(int argc, const char **argv, const char *unused_prefix)
{
int i, newfd, stage = 0;
unsigned char sha1[20];
Expand Down

0 comments on commit a91af79

Please sign in to comment.