1
0
mirror of https://github.com/git/git.git synced 2025-03-26 11:15:51 +00:00

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>
This commit is contained in:
Heiko Voigt 2011-02-12 17:43:44 +01:00 committed by Pat Thoyts
parent df128139c6
commit 8b92658206

View File

@ -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