summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/remote.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/remote.tcl b/lib/remote.tcl
index b92b429cf7..1383e9786c 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