1. Stefan Saasen
  2. git

Commits

Junio C Hamano  committed a91af79

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>

  • Participants
  • Parent commits 47781bf
  • Branches master

Comments (0)

Files changed (1)

File builtin-read-tree.c

View file
 
 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];