Code

Fix up some fallout from "setup_git_directory()" cleanups
authorLinus Torvalds <torvalds@osdl.org>
Mon, 31 Jul 2006 20:13:55 +0000 (13:13 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 31 Jul 2006 20:42:13 +0000 (13:42 -0700)
commit3e04228b0c4bbb4b5cd46db9a714dfe699fa4cb8
treeb454a2a0b26b4d77555d1308580f005218f179e9
parent7f8508e8d320d768a34483682e9f2dc5af1af04b
Fix up some fallout from "setup_git_directory()" cleanups

git-ls-files was broken by the setup_git_directory() calling changes,
because I had missed the fact that the "prefix" variable in that file was
static to the whole file, and unlike git-ls-tree (where I had fixed it
up), it ended up using two different variables with the same name
depending on what the scoping happened to be.

This fixes it up properly (by just removing the static variable, and
passing the automatic one around properly), and git-ls-files should work
again.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-ls-files.c