radicle-heartwood-lfs/crates/radicle-cli/examples
Richard Levitte 354805aeb3 cli/test: Fix failures related to remote HEAD
Two tests assumed that `refs/remotes/rad/HEAD` would automatically be
crated.  It turns out, however, that this only the case if executed
with Git 2.48.0 or newer. Git versions older than 2.48.0 do not touch
'refs/remotes/<remote>/HEAD'.

Git 2.48.0 and newer will update `refs/remotes/<remote>/HEAD` by
default. This can be disabled by setting
`remote.<remote>.followRemoteHEAD` to "never". Thus, with these
versions, setting that configuration to "never" emulates the behaviour
of older versions.

Therefore, to ensure that test results are consistent across Git
versions before and after 2.48.0, the fixture of test repositories
now include setting 'remote.rad.followRemoteHEAD = never'.

The affected tests are adjusted accordingly.

This change can possibly be reverted once Radicle requires usage of Git
2.48.0 or newer.

Co-authored-by: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
2026-04-21 23:15:34 +02:00
..
framework cli/test: Clean up testing environment 2025-10-13 08:56:23 +01:00
git remote-helper: Support push --force-with-lease 2025-11-25 10:48:30 +00:00
workflow Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
jj-config.md radicle-cli/tests: Add `rad_jj_patch` 2025-09-26 12:03:01 +01:00
jj-init-bare.md radicle: Detect current repository using `jj` 2025-09-26 12:03:01 +01:00
jj-init-colocate.md radicle-cli/tests: Add `rad_jj_patch` 2025-09-26 12:03:01 +01:00
rad-auth-errors.md cli: fix test regression in 27a85987c3 2025-10-17 16:57:29 +01:00
rad-auth.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-block.md cli: Do not print scope in block table 2026-02-16 21:39:11 +01:00
rad-checkout-repo-config-linux.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-checkout-repo-config-macos.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-checkout.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-clean.md radicle/sigrefs/git: Use stable `RAD_LOCAL_TIME` 2026-03-25 08:07:49 +00:00
rad-clone-all.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-clone-bare.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-clone-connect.md cli: Changed the default scope from all to followed for clone and seed 2026-02-16 21:39:11 +01:00
rad-clone-directory.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-clone-partial-fail.md Use humantime to parse timeouts 2026-03-17 11:39:09 +00:00
rad-clone-scope.md cli/tests: Add test for `rad clone --scope` 2026-03-17 10:31:29 +00:00
rad-clone-unknown.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-clone.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-cob-log.md cli: extend `rad cob log` behaviour 2025-08-19 15:01:26 +01:00
rad-cob-migrate.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-cob-multiset repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-cob-multiset.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-cob-operations.md cli: extend `rad cob log` behaviour 2025-08-19 15:01:26 +01:00
rad-cob-show.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-cob-update-identity.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-cob-update.md cli: Make `rad patch show` prettier 2025-09-16 11:37:13 +02:00
rad-config.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-diff.md cli/diff: Use clap 2025-10-15 10:30:34 +02:00
rad-fetch.md cli: Changed the default scope from all to followed for clone and seed 2026-02-16 21:39:11 +01:00
rad-fork.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-help.md cli-test: Add placeholder for executable extension 2026-02-16 08:39:55 +00:00
rad-id-collaboration.md cli/inspect: Show feature level of sigrefs 2026-03-24 14:40:42 +00:00
rad-id-conflict.md cli: Add verbose printing of authors 2025-08-14 16:15:19 +01:00
rad-id-multi-delegate.md radicle/sigrefs/git: Use stable `RAD_LOCAL_TIME` 2026-03-25 08:07:49 +00:00
rad-id-private.md cli: extract document update logic 2025-07-16 16:41:16 +02:00
rad-id-threshold-soft-fork.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-id-threshold.md radicle/sigrefs/git: Use stable `RAD_LOCAL_TIME` 2026-03-25 08:07:49 +00:00
rad-id-unauthorized-delegate.md radicle-cli: more helpful error for non-delegate updates 2026-01-22 10:38:28 +00:00
rad-id-unknown-field.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-id-update-delete-field.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-id.md chore: Fix spelling errors with codespell 2025-11-01 12:11:02 +01:00
rad-inbox.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-init-detached-head.md cli: improve default branch pick 2025-07-23 07:43:27 +01:00
rad-init-existing-bare.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-init-existing.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-init-no-git.md cli: improve default branch pick 2025-07-23 07:43:27 +01:00
rad-init-no-seed.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-init-private-clone-seed.md Use humantime to parse timeouts 2026-03-17 11:39:09 +00:00
rad-init-private-clone.md Use humantime to parse timeouts 2026-03-17 11:39:09 +00:00
rad-init-private-no-seed.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-init-private-seed.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-init-private.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-init-sync-not-connected.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-init-sync-preferred.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-init-sync-timeout.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-init-sync.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-init-with-existing-remote.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-init.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-inspect-noauth.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-inspect.md radicle/sigrefs: Automatically Migrate 2026-03-24 14:40:42 +00:00
rad-issue-list.md cli/issue: Use clap 2025-09-28 18:02:55 +02:00
rad-issue.md cli: Add blank line after issue reply header 2026-03-12 13:30:09 +00:00
rad-key-mismatch.md crypto/ssh/keystore: Explicit paths 2025-09-26 13:21:38 +02:00
rad-merge-after-update.md canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
rad-merge-no-ff.md canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
rad-merge-via-push.md cli/patch: Show Commit Ranges of Revisions 2026-04-02 14:08:44 +01:00
rad-node.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-patch-ahead-behind.md cli/patch: Show Commit Ranges of Revisions 2026-04-02 14:08:44 +01:00
rad-patch-change-base.md cli/patch: Show Commit Ranges of Revisions 2026-04-02 14:08:44 +01:00
rad-patch-checkout-force.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-patch-checkout-revision.md cli/patch: Show Commit Ranges of Revisions 2026-04-02 14:08:44 +01:00
rad-patch-checkout.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-patch-delete.md cli/patch: Show Commit Ranges of Revisions 2026-04-02 14:08:44 +01:00
rad-patch-detached-head.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-patch-diff.md cli/diff: Use clap 2025-10-15 10:30:34 +02:00
rad-patch-draft.md cli/patch: Show Commit Ranges of Revisions 2026-04-02 14:08:44 +01:00
rad-patch-edit.md cli/patch: Show Commit Ranges of Revisions 2026-04-02 14:08:44 +01:00
rad-patch-fetch-1.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-patch-fetch-2.md cli/test: Fix failures related to remote HEAD 2026-04-21 23:15:34 +02:00
rad-patch-jj.md cli/patch: Show Commit Ranges of Revisions 2026-04-02 14:08:44 +01:00
rad-patch-merge-draft.md canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
rad-patch-open-explore.md canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
rad-patch-pull-update.md Spell "Radicle" with a captial R 2026-04-17 17:15:31 +01:00
rad-patch-revert-merge.md cli/patch: Show Commit Ranges of Revisions 2026-04-02 14:08:44 +01:00
rad-patch-update.md cli/patch: Show Commit Ranges of Revisions 2026-04-02 14:08:44 +01:00
rad-patch-via-push.md cli/test: Fix failures related to remote HEAD 2026-04-21 23:15:34 +02:00
rad-patch.md cli/patch: Show Commit Ranges of Revisions 2026-04-02 14:08:44 +01:00
rad-publish.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-push-and-pull-patches.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-remote.md cli: Improve formatting of Node IDs and addresses 2025-07-18 21:44:06 +01:00
rad-review-by-hunk.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-seed-and-follow.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-seed-many.md cli: Changed the default scope from all to followed for clone and seed 2026-02-16 21:39:11 +01:00
rad-seed-policy-allow-no-scope.md cli: Warn user about implicit seeding policy 2026-02-16 21:39:11 +01:00
rad-seed-scope.md cli: Don't override existing seeding scope in `rad seed` 2026-03-17 10:31:29 +00:00
rad-self.md cli/test: Clean up testing environment 2025-10-13 08:56:23 +01:00
rad-sync-without-node.md cli: Changed the default scope from all to followed for clone and seed 2026-02-16 21:39:11 +01:00
rad-sync.md radicle/sigrefs/git: Use stable `RAD_LOCAL_TIME` 2026-03-25 08:07:49 +00:00
rad-unseed-many.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-unseed.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
rad-warn-old-nodes.md cli: Warn user about implicit seeding policy 2026-02-16 21:39:11 +01:00
rad-watch.md repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00