radicle-heartwood-lfs/crates/radicle
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
..
src cli/test: Fix failures related to remote HEAD 2026-04-21 23:15:34 +02:00
CHANGELOG.md radicle: Prevent `RAD_SOCKET` from polluting tests 2026-04-09 17:53:49 +02:00
Cargo.toml I2P Support 2026-04-15 12:01:50 +01:00
build.rs radicle: Add Version to User Agent 2026-04-02 16:26:46 +01:00