git-gui: remove 'no such variable' for s error when encounter unknown file states

$s will be referenced in the error message. Which was broken since
"git-gui: Automatically update-index all included files before commit"
(bbe3b3b, 2006-11-16).

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
This commit is contained in:
Bert Wesarg
2010-12-09 21:46:22 +01:00
committed by Pat Thoyts
parent bf5fe3f33c
commit 4a065c8a6f

View File

@ -161,7 +161,8 @@ The rescan will be automatically started now.
#
set files_ready 0
foreach path [array names file_states] {
switch -glob -- [lindex $file_states($path) 0] {
set s $file_states($path)
switch -glob -- [lindex $s 0] {
_? {continue}
A? -
D? -