radicle-heartwood-lfs/crates
Lorenz Leutgeb 9bb136105c remote-helper: Only update patch after evaluating base
Without quorum for the default branch, the remote helper would report
an error, suggesting that the patch was not updated, while,
inconsistently, actually updating the ref in storage without creating
a new revision.

    $ git push …
    To rad://z…5/z…z
    …
     ! [remote rejected]       612… -> patches/a77… (…)
    error: failed to push some refs to 'rad://z…5/z…z'
    …
    $ git ls-remote rad://z…5/z…z
    612…        refs/heads/patches/a77…

This is very confusing.

Fix this by using a temporary reference name that is different from the
reference name that the patch would use, implementing cleanup via
`Drop`.

While at it, also move the logic into `patch_base` and share it
between `patch_open` and `patch_update`. Computation of the canonical
head via `stored.canonical_head` is moved to a branch that is only
taken if the user did not specify a base explicitly. This allows to
update patches even when there is no quorum for the default branch.
2025-10-03 11:30:22 +01:00
..
radicle node: Make location of secret key configurable 2025-09-26 13:03:57 +01:00
radicle-cli cli/unfollow: Use clap 2025-10-01 14:36:39 +02:00
radicle-cli-test radicle-cli-test: Prepare testing with `jj` 2025-09-26 12:03:01 +01:00
radicle-cob crates: 1.4.0 release 2025-08-27 10:30:28 +01:00
radicle-crypto crypto/ssh/keystore: Explicit paths 2025-09-26 13:21:38 +02:00
radicle-dag repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
radicle-fetch fetch: Rewrite `git::repository::direct` 2025-10-02 12:31:38 +02:00
radicle-node node/log: Define syslog identifier 2025-10-01 16:46:46 +02:00
radicle-protocol protocol: Decrease log-level for logging ping/pong 2025-10-02 10:47:29 +01:00
radicle-remote-helper remote-helper: Only update patch after evaluating base 2025-10-03 11:30:22 +01:00
radicle-schemars crates: 1.4.0 release 2025-08-27 10:30:28 +01:00
radicle-signals signals: Guard most of the crate for Unix 2025-08-22 15:19:31 +01:00
radicle-ssh release: prepare crates 2025-08-12 12:13:49 +02:00
radicle-systemd radicle-systemd: Guard `mod listen` for Unix 2025-10-02 15:46:56 +01:00
radicle-term docs: fix doc string linking 2025-09-15 10:34:42 +01:00