Fossil SCM
Set the local bin path on SSH calls for "fossil sync", as is already done in [8cb116407933bb3b] for "fossil ui" and "fossil patch".
Commit
805c93147956957621d093f8748dec5c6595b49332c0d678da69e06e2ad2b167
Parent
d5b04f0ec60ae8b…
1 file changed
+1
+1
| --- src/http_transport.c | ||
| +++ src/http_transport.c | ||
| @@ -135,10 +135,11 @@ | ||
| 135 | 135 | } |
| 136 | 136 | if( !is_safe_fossil_command(pUrlData->fossil) ){ |
| 137 | 137 | fossil_fatal("the ssh:// URL is asking to run an unsafe command [%s] on " |
| 138 | 138 | "the server.", pUrlData->fossil); |
| 139 | 139 | } |
| 140 | + blob_append_escaped_arg(&zCmd, "PATH=$HOME/bin:$PATH", 1); | |
| 140 | 141 | blob_append_escaped_arg(&zCmd, pUrlData->fossil, 1); |
| 141 | 142 | blob_append(&zCmd, " test-http", 10); |
| 142 | 143 | if( pUrlData->path && pUrlData->path[0] ){ |
| 143 | 144 | blob_append_escaped_arg(&zCmd, pUrlData->path, 1); |
| 144 | 145 | }else{ |
| 145 | 146 |
| --- src/http_transport.c | |
| +++ src/http_transport.c | |
| @@ -135,10 +135,11 @@ | |
| 135 | } |
| 136 | if( !is_safe_fossil_command(pUrlData->fossil) ){ |
| 137 | fossil_fatal("the ssh:// URL is asking to run an unsafe command [%s] on " |
| 138 | "the server.", pUrlData->fossil); |
| 139 | } |
| 140 | blob_append_escaped_arg(&zCmd, pUrlData->fossil, 1); |
| 141 | blob_append(&zCmd, " test-http", 10); |
| 142 | if( pUrlData->path && pUrlData->path[0] ){ |
| 143 | blob_append_escaped_arg(&zCmd, pUrlData->path, 1); |
| 144 | }else{ |
| 145 |
| --- src/http_transport.c | |
| +++ src/http_transport.c | |
| @@ -135,10 +135,11 @@ | |
| 135 | } |
| 136 | if( !is_safe_fossil_command(pUrlData->fossil) ){ |
| 137 | fossil_fatal("the ssh:// URL is asking to run an unsafe command [%s] on " |
| 138 | "the server.", pUrlData->fossil); |
| 139 | } |
| 140 | blob_append_escaped_arg(&zCmd, "PATH=$HOME/bin:$PATH", 1); |
| 141 | blob_append_escaped_arg(&zCmd, pUrlData->fossil, 1); |
| 142 | blob_append(&zCmd, " test-http", 10); |
| 143 | if( pUrlData->path && pUrlData->path[0] ){ |
| 144 | blob_append_escaped_arg(&zCmd, pUrlData->path, 1); |
| 145 | }else{ |
| 146 |