Fossil SCM

This fixes the logic error introduced in [f019cb5fc3f].

andybradford 2024-11-23 01:11 ssh-command-once
Commit 25857ebba5180111c1cdeed406086b1f0ba7e0433b20907506862ff0d8d60d45
1 file changed +1 -1
--- src/http_transport.c
+++ src/http_transport.c
@@ -104,11 +104,11 @@
104104
** Initialize a Blob to the name of the configured SSH command.
105105
*/
106106
void transport_ssh_command(Blob *p){
107107
char *zSsh; /* The base SSH command */
108108
zSsh = g.zSshCmd;
109
- if( zSsh==0 && zSsh[0]==0 ){
109
+ if( zSsh==0 || zSsh[0]==0 ){
110110
zSsh = db_get("ssh-command", zDefaultSshCmd);
111111
}
112112
blob_init(p, zSsh, -1);
113113
}
114114
115115
--- src/http_transport.c
+++ src/http_transport.c
@@ -104,11 +104,11 @@
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
--- src/http_transport.c
+++ src/http_transport.c
@@ -104,11 +104,11 @@
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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button