2016-03-25 22:05:32 +01:00
|
|
|
diff --git a/connect.c b/connect.c
|
2019-02-25 19:26:30 +01:00
|
|
|
index 4813f005ab..b3f12f3268 100644
|
2016-03-25 22:05:32 +01:00
|
|
|
--- a/connect.c
|
|
|
|
+++ b/connect.c
|
2019-02-25 19:26:30 +01:00
|
|
|
@@ -1183,7 +1183,7 @@ static void fill_ssh_args(struct child_process *conn, const char *ssh_host,
|
|
|
|
|
2018-01-18 15:13:17 +01:00
|
|
|
ssh = getenv("GIT_SSH");
|
|
|
|
if (!ssh)
|
|
|
|
- ssh = "ssh";
|
|
|
|
+ ssh = "@ssh@";
|
|
|
|
variant = determine_ssh_variant(ssh, 0);
|
|
|
|
}
|
2019-02-25 19:26:30 +01:00
|
|
|
|
2016-03-25 22:05:32 +01:00
|
|
|
diff --git a/git-gui/lib/remote_add.tcl b/git-gui/lib/remote_add.tcl
|
2019-02-25 19:26:30 +01:00
|
|
|
index 480a6b30d0..7817204241 100644
|
2016-03-25 22:05:32 +01:00
|
|
|
--- a/git-gui/lib/remote_add.tcl
|
|
|
|
+++ b/git-gui/lib/remote_add.tcl
|
2018-01-18 15:13:17 +01:00
|
|
|
@@ -139,7 +139,7 @@ method _add {} {
|
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)
|
|
|
|
}
|