aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Voigt <hvoigt@hvoigt.net>2011-02-12 17:43:44 +0100
committerPat Thoyts <patthoyts@users.sourceforge.net>2011-02-13 00:47:19 +0000
commit8b92658206c3fb7d23fdacd626667985bf4c50b4 (patch)
treed8e0dcfd42116029599de2f58f3b46fe17ec1d80
parentdf128139c690233e94ac249cf9d5271ac0d5f13d (diff)
downloadgit-8b92658206c3fb7d23fdacd626667985bf4c50b4.tar.gz
git-8b92658206c3fb7d23fdacd626667985bf4c50b4.tar.xz
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 <heiko.voigt@mahr.de> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
-rw-r--r--lib/remote.tcl4
1 files changed, 2 insertions, 2 deletions
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