git-gui: Fix removing non-pushable remotes
Git-gui does not add most of the remotes to the 'push' menu since they are missing the "Push" line in their remotespec. In that case, removing the remote would end up with an error. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Petr Baudis committed
Sep 25, 2008 at 01:32 UTC
2243ffcc6a445d1953297949e8e944fdc3df6ed7
1 file changed
+2
-1
lib/remote.tcl
+2
-1
@@ -271,5 +271,6 @@ proc remove_remote {name} {
271
delete_from_menu $remote_m.fetch $name
272
delete_from_menu $remote_m.prune $name
273
delete_from_menu $remote_m.remove $name
274
- delete_from_menu $remote_m.push $name
274
+ # Not all remotes are in the push menu
275
+ catch { delete_from_menu $remote_m.push $name }
276
}