2016-03-25 22:05:32 +01:00
|
|
|
diff --git a/connect.c b/connect.c
|
|
|
|
index fd7ffe1..20cd992 100644
|
|
|
|
--- a/connect.c
|
|
|
|
+++ b/connect.c
|
2017-05-10 03:57:24 +02:00
|
|
|
@@ -768,7 +768,7 @@
|
|
|
|
|
2016-03-25 22:05:32 +01:00
|
|
|
ssh = getenv("GIT_SSH");
|
|
|
|
if (!ssh)
|
|
|
|
- ssh = "ssh";
|
|
|
|
+ ssh = "@ssh@";
|
2017-05-10 03:57:24 +02:00
|
|
|
else
|
|
|
|
handle_ssh_variant(ssh, 0,
|
|
|
|
&port_option,
|
2016-03-25 22:05:32 +01:00
|
|
|
diff --git a/git-gui/lib/remote_add.tcl b/git-gui/lib/remote_add.tcl
|
|
|
|
index 50029d0..17b9594 100644
|
|
|
|
--- a/git-gui/lib/remote_add.tcl
|
|
|
|
+++ b/git-gui/lib/remote_add.tcl
|
2017-05-10 03:57:24 +02:00
|
|
|
@@ -139,7 +139,7 @@
|
2016-03-25 22:05:32 +01:00
|
|
|
# Parse the location
|
|
|
|
if { [regexp {(?:git\+)?ssh://([^/]+)(/.+)} $location xx host path]
|
|
|
|
|| [regexp {([^:][^:]+):(.+)} $location xx host path]} {
|
|
|
|
- set ssh ssh
|
|
|
|
+ set ssh @ssh@
|
|
|
|
if {[info exists env(GIT_SSH)]} {
|
|
|
|
set ssh $env(GIT_SSH)
|
|
|
|
}
|