Fossil SCM
Disable HTTPS redirect for the "test-http" command. That command is used by the "ssh:" transport method and redirects to https will break ssh: transport.
Commit
ea6365a8df6ab5fe27d84ec93d67b298bfd30afa50ad07ce0ea6781fd76a2a95
Parent
9d2b7cab7ac64cf…
1 file changed
+1
+1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -2634,10 +2634,11 @@ | ||
| 2634 | 2634 | g.zExtRoot = find_option("extroot",0,1); |
| 2635 | 2635 | find_server_repository(2, 0); |
| 2636 | 2636 | g.cgiOutput = 1; |
| 2637 | 2637 | g.fNoHttpCompress = 1; |
| 2638 | 2638 | g.fullHttpReply = 1; |
| 2639 | + g.sslNotAvailable = 1; /* Avoid attempts to redirect */ | |
| 2639 | 2640 | zIpAddr = cgi_ssh_remote_addr(0); |
| 2640 | 2641 | if( zIpAddr && zIpAddr[0] ){ |
| 2641 | 2642 | g.fSshClient |= CGI_SSH_CLIENT; |
| 2642 | 2643 | ssh_request_loop(zIpAddr, 0); |
| 2643 | 2644 | }else{ |
| 2644 | 2645 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2634,10 +2634,11 @@ | |
| 2634 | g.zExtRoot = find_option("extroot",0,1); |
| 2635 | find_server_repository(2, 0); |
| 2636 | g.cgiOutput = 1; |
| 2637 | g.fNoHttpCompress = 1; |
| 2638 | g.fullHttpReply = 1; |
| 2639 | zIpAddr = cgi_ssh_remote_addr(0); |
| 2640 | if( zIpAddr && zIpAddr[0] ){ |
| 2641 | g.fSshClient |= CGI_SSH_CLIENT; |
| 2642 | ssh_request_loop(zIpAddr, 0); |
| 2643 | }else{ |
| 2644 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2634,10 +2634,11 @@ | |
| 2634 | g.zExtRoot = find_option("extroot",0,1); |
| 2635 | find_server_repository(2, 0); |
| 2636 | g.cgiOutput = 1; |
| 2637 | g.fNoHttpCompress = 1; |
| 2638 | g.fullHttpReply = 1; |
| 2639 | g.sslNotAvailable = 1; /* Avoid attempts to redirect */ |
| 2640 | zIpAddr = cgi_ssh_remote_addr(0); |
| 2641 | if( zIpAddr && zIpAddr[0] ){ |
| 2642 | g.fSshClient |= CGI_SSH_CLIENT; |
| 2643 | ssh_request_loop(zIpAddr, 0); |
| 2644 | }else{ |
| 2645 |