@@ -2,20 +2,20 @@ diff --git a/connect.c b/connect.c
22index fd7ffe1..20cd992 100644
33--- a/connect.c
44+++ b/connect.c
5−@@ -768,7 +768,7 @@ struct child_process *git_connect(int fd[2], const char *url,
6−
5+@@ -768,7 +768,7 @@
6+
77 ssh = getenv("GIT_SSH");
88 if (!ssh)
99- ssh = "ssh";
1010+ ssh = "@ssh@";
11−
12− ssh_dup = xstrdup(ssh);
13− base = basename(ssh_dup);
11+ else
12+ handle_ssh_variant(ssh, 0,
13+ &port_option,
1414diff --git a/git-gui/lib/remote_add.tcl b/git-gui/lib/remote_add.tcl
1515index 50029d0..17b9594 100644
1616--- a/git-gui/lib/remote_add.tcl
1717+++ b/git-gui/lib/remote_add.tcl
18−@@ -139,7 +139,7 @@ method _add {} {
18+@@ -139,7 +139,7 @@
1919 # Parse the location
2020 if { [regexp {(?:git\+)?ssh://([^/]+)(/.+)} $location xx host path]
2121 || [regexp {([^:][^:]+):(.+)} $location xx host path]} {