OXYGENHUB

Help: the push commands already save the certificate, so drop the separate step 3e5cd2eba626

refs #8
Author
Andy McCall @andymccall <[email protected]>
When
· 2026-09-28 12:49 UTC
Signature
✔ signed by Andy McCall
Hash
3e5cd2eba62654482a1214b1c387ffce03fa802047622660d17878689e42007f
Depends on
43e8ca33bc5d
Depended on by
nothing yet
In bookmarks
api-unknown-fields cancel-landed-runs clear-waiting close-proposal-140 diffusion-pin-bookmark draft-ready image-check job-waits main oh-comment-body-file proposal-list-fast run-one-job wiki-says-so
In tags
v0.1.0 v0.2.0 v0.3.0 v0.3.1 v0.4.0 v0.4.1 v0.4.2 v0.5.0 v0.5.1 v0.5.2 v0.6.0 v0.6.1 v0.7.0 v0.8.0 v0.9.0 v0.9.1 v0.9.11 v0.9.15 v0.9.16 v0.9.19 v0.9.2 v0.9.20 v0.9.21 v0.9.22 v0.9.23 v0.9.24 v0.9.3 v0.9.4 v0.9.5 v0.9.6 v0.9.7 v0.9.8 v0.9.9
Edits
3 atoms, 0 tree operations, 2 files

Browse the tree at this change

modified crates/hub/src/web/help.rs +0 −8
…
26 unchanged lines
27 27
}
28 28
29 29
impl HelpPage {
30 -
    /// Trust this hub's certificate, when it is self-signed (empty otherwise).
31 -
    pub fn ca_setup(&self) -> String {
32 -
        match &self.q.ca_url {
33 -
            Some(url) => format!("mkdir -p ~/.config/oxy\ncurl -fsSL {url} -o {}", self.q.ca_file),
34 -
            None => String::new(),
35 -
        }
36 -
    }
37 -
38 30
    /// An example repository address on this hub.
39 31
    pub fn repo_url(&self) -> String {
40 32
        format!("{}/{}/REPOSITORY", self.base, self.who)
…
14 unchanged lines
modified templates/help.html +1 −6
…
37 unchanged lines
38 38
39 39
<section class="panel" id="push">
40 40
  <h2>Pushing</h2>
41 -
  {% let ca = self.ca_setup() %}
42 -
  {% if !ca.is_empty() %}
43 -
  <p>This hub uses a self-signed certificate. Save it once, and point each remote at it:</p>
44 -
  <div class="cmds"><pre><code>{{ ca }}</code></pre><button class="small" data-copy="{{ ca }}">copy</button></div>
45 -
  {% endif %}
46 -
  <p>From a checkout, add the repository as a remote, give it your token, and push:</p>
41 +
  <p>From a checkout, add the repository as a remote, give it your token, and push{% if q.ca_url.is_some() %}. This hub's certificate is self-signed, so the commands also save it and point the remote at it{% endif %}:</p>
47 42
  {% let cmd = q.connect(self.repo_url().as_str()) %}
48 43
  <div class="cmds"><pre><code>{{ cmd }}</code></pre><button class="small" data-copy="{{ cmd }}">copy</button></div>
49 44
  <p>An empty repository takes its identity from the first push, so every later clone shares it. <code>oxy push {{ q.remote }}</code> sends the current bookmark; <code>oxy push {{ q.remote }} --bookmark NAME</code> another one. Tags travel with pushes.</p>
…
80 unchanged lines