@matheusbsbs / matheus-bagliano / commits / a91af794bb
Fork 0

read-tree: shadowed variable fix.

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>

Junio C Hamano committed Aug 3, 2006 at 13:44 UTC a91af794bb4349e0b35d6a9615db31ae2f6ee355
1 file changed +1 -1
builtin-read-tree.c
+1 -1
@@ -870,7 +870,7 @@ static const char read_tree_usage[] = "git-read-tree (<sha> | [[-m [--aggressive
870
871 static struct lock_file lock_file;
872
873 -int cmd_read_tree(int argc, const char **argv, const char *prefix)
873 +int cmd_read_tree(int argc, const char **argv, const char *unused_prefix)
874 {
875 int i, newfd, stage = 0;
876 unsigned char sha1[20];