From: Heiko Voigt Date: Sat, 12 Feb 2011 16:43:44 +0000 (+0100) Subject: git-gui: fix deleting item from all_remotes variable X-Git-Tag: gitgui-0.14.0~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8b92658206c3fb7d23fdacd626667985bf4c50b4;p=git.git git-gui: fix deleting item from all_remotes variable lsearch and lreplace both take the variable content as argument and not just their name. Signed-off-by: Heiko Voigt Signed-off-by: Pat Thoyts --- diff --git a/lib/remote.tcl b/lib/remote.tcl index b92b429cf..1383e9786 100644 --- a/lib/remote.tcl +++ b/lib/remote.tcl @@ -264,8 +264,8 @@ proc remove_remote {name} { unset repo_config(remote.$name.push) } - set i [lsearch -exact all_remotes $name] - lreplace all_remotes $i $i + set i [lsearch -exact $all_remotes $name] + set all_remotes [lreplace $all_remotes $i $i] set remote_m .mbar.remote delete_from_menu $remote_m.fetch $name