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>
Bert Wesarg committed
Dec 9, 2010 at 21:46 UTC
4a065c8a6f0415da6d778dae83ff88e5385a2f0f
1 file changed
+2
-1
lib/commit.tcl
+2
-1
@@ -161,7 +161,8 @@ The rescan will be automatically started now.
161
#
162
set files_ready 0
163
foreach path [array names file_states] {
164
- switch -glob -- [lindex $file_states($path) 0] {
164
+ set s $file_states($path)
165
+ switch -glob -- [lindex $s 0] {
166
_? {continue}
167
A? -
168
D? -