Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | For the "fossil ui remote:/" and the "fossil patch push/pull" commands, when going over SSH, add the argument "PATH=$HOME/bin:$PATH" to the command line so that the "fossil" executable can be found in the users home directory. This is important on system like Mac where the default PATH for SSH consists of only unwritable directories. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
8cb116407933bb3b88f7ebf9ffea31f3 |
| User & Date: | drh 2023-06-18 00:22:38.827 |
References
|
2024-01-25
| ||
| 14:47 | Set the local bin path on SSH calls for "fossil sync", as is already done in [8cb116407933bb3b] for "fossil ui" and "fossil patch". ... (check-in: 805c931479 user: drh tags: trunk) | |
Context
|
2023-06-18
| ||
| 00:46 | Always print the SSH command used to implement "fossil patch push/pull". No longer require the -v option to see the ssh command. This is in the interest of full disclosure - letting the operator know what Fossi is doing behind the scenes. ... (check-in: 97ec767f4b user: drh tags: trunk) | |
| 00:22 | For the "fossil ui remote:/" and the "fossil patch push/pull" commands, when going over SSH, add the argument "PATH=$HOME/bin:$PATH" to the command line so that the "fossil" executable can be found in the users home directory. This is important on system like Mac where the default PATH for SSH consists of only unwritable directories. ... (check-in: 8cb1164079 user: drh tags: trunk) | |
|
2023-06-17
| ||
| 20:51 | Mention the "all" option in the documentation for "autosync" ... (check-in: 4e7b08c380 user: drh tags: trunk) | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
3341 3342 3343 3344 3345 3346 3347 |
char zLine[1000];
blob_init(&ssh, 0, 0);
transport_ssh_command(&ssh);
db_close_config();
if( zFossilCmd==0 ) zFossilCmd = "fossil";
blob_appendf(&ssh,
" -t -L 127.0.0.1:%d:127.0.0.1:%d %!$"
| | | | 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 |
char zLine[1000];
blob_init(&ssh, 0, 0);
transport_ssh_command(&ssh);
db_close_config();
if( zFossilCmd==0 ) zFossilCmd = "fossil";
blob_appendf(&ssh,
" -t -L 127.0.0.1:%d:127.0.0.1:%d %!$"
" %$ %$ ui --nobrowser --localauth --port %d",
iPort, iPort, zRemote, "PATH=$HOME/bin:$PATH", zFossilCmd, iPort);
if( zNotFound ) blob_appendf(&ssh, " --notfound %!$", zNotFound);
if( zFileGlob ) blob_appendf(&ssh, " --files-urlenc %T", zFileGlob);
if( g.zCkoutAlias ) blob_appendf(&ssh, " --ckout-alias %!$",g.zCkoutAlias);
if( g.zExtRoot ) blob_appendf(&ssh, " --extroot %$", g.zExtRoot);
if( skin_in_use() ) blob_appendf(&ssh, " --skin %s", skin_in_use());
if( zJsMode ) blob_appendf(&ssh, " --jsmode %s", zJsMode);
if( fCreate ) blob_appendf(&ssh, " --create");
|
| ︙ | ︙ |
Changes to src/patch.c.
| ︙ | ︙ | |||
690 691 692 693 694 695 696 697 698 699 700 701 702 703 |
blob_appendf(&cmd, " patch %s%s %$ -", zRemoteCmd, zForce, zDir);
}else{
Blob remote;
*(char*)(zDir-1) = 0;
transport_ssh_command(&cmd);
blob_appendf(&cmd, " -T");
blob_append_escaped_arg(&cmd, zRemote, 0);
blob_init(&remote, 0, 0);
if( zFossilCmd==0 ) zFossilCmd = "fossil";
blob_appendf(&remote, "%$ patch %s%s --dir64 %z -",
zFossilCmd, zRemoteCmd, zForce, encode64(zDir, -1));
blob_append_escaped_arg(&cmd, blob_str(&remote), 0);
blob_reset(&remote);
}
| > | 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 |
blob_appendf(&cmd, " patch %s%s %$ -", zRemoteCmd, zForce, zDir);
}else{
Blob remote;
*(char*)(zDir-1) = 0;
transport_ssh_command(&cmd);
blob_appendf(&cmd, " -T");
blob_append_escaped_arg(&cmd, zRemote, 0);
blob_append_escaped_arg(&cmd, "PATH=$HOME/bin:$PATH", 0);
blob_init(&remote, 0, 0);
if( zFossilCmd==0 ) zFossilCmd = "fossil";
blob_appendf(&remote, "%$ patch %s%s --dir64 %z -",
zFossilCmd, zRemoteCmd, zForce, encode64(zDir, -1));
blob_append_escaped_arg(&cmd, blob_str(&remote), 0);
blob_reset(&remote);
}
|
| ︙ | ︙ |