Fossil SCM
Bug fix for allowing SSH command to be overridden once for sync operations.
Commit
4c6e394d1eaf275ce787efc435f3ec1399b50f7f41d50e8c75a17d8a2d2b440b
Parent
87368b3efd0b3a5…
1 file changed
+4
-1
+4
-1
| --- src/http_transport.c | ||
| +++ src/http_transport.c | ||
| @@ -103,11 +103,14 @@ | ||
| 103 | 103 | /* |
| 104 | 104 | ** Initialize a Blob to the name of the configured SSH command. |
| 105 | 105 | */ |
| 106 | 106 | void transport_ssh_command(Blob *p){ |
| 107 | 107 | char *zSsh; /* The base SSH command */ |
| 108 | - zSsh = db_get("ssh-command", zDefaultSshCmd); | |
| 108 | + zSsh = g.zSshCmd; | |
| 109 | + if( zSsh==0 || zSsh[0]==0 ){ | |
| 110 | + zSsh = db_get("ssh-command", zDefaultSshCmd); | |
| 111 | + } | |
| 109 | 112 | blob_init(p, zSsh, -1); |
| 110 | 113 | } |
| 111 | 114 | |
| 112 | 115 | /* |
| 113 | 116 | ** SSH initialization of the transport layer |
| 114 | 117 |
| --- src/http_transport.c | |
| +++ src/http_transport.c | |
| @@ -103,11 +103,14 @@ | |
| 103 | /* |
| 104 | ** Initialize a Blob to the name of the configured SSH command. |
| 105 | */ |
| 106 | void transport_ssh_command(Blob *p){ |
| 107 | char *zSsh; /* The base SSH command */ |
| 108 | zSsh = db_get("ssh-command", zDefaultSshCmd); |
| 109 | blob_init(p, zSsh, -1); |
| 110 | } |
| 111 | |
| 112 | /* |
| 113 | ** SSH initialization of the transport layer |
| 114 |
| --- src/http_transport.c | |
| +++ src/http_transport.c | |
| @@ -103,11 +103,14 @@ | |
| 103 | /* |
| 104 | ** Initialize a Blob to the name of the configured SSH command. |
| 105 | */ |
| 106 | void transport_ssh_command(Blob *p){ |
| 107 | char *zSsh; /* The base SSH command */ |
| 108 | zSsh = g.zSshCmd; |
| 109 | if( zSsh==0 || zSsh[0]==0 ){ |
| 110 | zSsh = db_get("ssh-command", zDefaultSshCmd); |
| 111 | } |
| 112 | blob_init(p, zSsh, -1); |
| 113 | } |
| 114 | |
| 115 | /* |
| 116 | ** SSH initialization of the transport layer |
| 117 |