Fossil

Check-in [805c9314]
Login

Check-in [805c9314]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Set the local bin path on SSH calls for "fossil sync", as is already done in [8cb116407933bb3b] for "fossil ui" and "fossil patch".
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 805c93147956957621d093f8748dec5c6595b49332c0d678da69e06e2ad2b167
User & Date: drh 2024-01-25 14:47:28
Context
2024-01-25
19:09
When the "autosync" setting contains "all", then all remotes are synced using the "fossil sync" command. ... (check-in: 808193e6 user: drh tags: trunk)
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: 805c9314 user: drh tags: trunk)
11:55
Fix incorrect hyperlink target in the documentation. ... (check-in: d5b04f0e user: drh tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/http_transport.c.

133
134
135
136
137
138
139

140
141
142
143
144
145
146
  }else{
    blob_append_escaped_arg(&zCmd, pUrlData->name, 0);
  }
  if( !is_safe_fossil_command(pUrlData->fossil) ){
    fossil_fatal("the ssh:// URL is asking to run an unsafe command [%s] on "
                 "the server.", pUrlData->fossil);
  }

  blob_append_escaped_arg(&zCmd, pUrlData->fossil, 1);
  blob_append(&zCmd, " test-http", 10);
  if( pUrlData->path && pUrlData->path[0] ){
    blob_append_escaped_arg(&zCmd, pUrlData->path, 1);
  }else{
    fossil_fatal("ssh:// URI does not specify a path to the repository");
  }







>







133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
  }else{
    blob_append_escaped_arg(&zCmd, pUrlData->name, 0);
  }
  if( !is_safe_fossil_command(pUrlData->fossil) ){
    fossil_fatal("the ssh:// URL is asking to run an unsafe command [%s] on "
                 "the server.", pUrlData->fossil);
  }
  blob_append_escaped_arg(&zCmd, "PATH=$HOME/bin:$PATH", 1);
  blob_append_escaped_arg(&zCmd, pUrlData->fossil, 1);
  blob_append(&zCmd, " test-http", 10);
  if( pUrlData->path && pUrlData->path[0] ){
    blob_append_escaped_arg(&zCmd, pUrlData->path, 1);
  }else{
    fossil_fatal("ssh:// URI does not specify a path to the repository");
  }