summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Bert Wesarg <bert.wesarg@googlemail.com>2010-12-09 21:46:22 +0100
committerLibravatar Pat Thoyts <patthoyts@users.sourceforge.net>2011-01-28 00:16:46 +0000
commit4a065c8a6f0415da6d778dae83ff88e5385a2f0f (patch)
tree0a804807ba08e11afd2eeb89c6fbc03d014f5932
parentgit-gui: fix typo in image data (diff)
downloadtgif-4a065c8a6f0415da6d778dae83ff88e5385a2f0f.tar.xz
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>
-rw-r--r--lib/commit.tcl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/commit.tcl b/lib/commit.tcl
index 7f459cd564..83b3d9d21b 100644
--- a/lib/commit.tcl
+++ b/lib/commit.tcl
@@ -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? -