Browse Source

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>
maint
Heiko Voigt 14 years ago committed by Pat Thoyts
parent
commit
8b92658206
  1. 4
      lib/remote.tcl

4
lib/remote.tcl

@ -264,8 +264,8 @@ proc remove_remote {name} { @@ -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

Loading…
Cancel
Save