forgejo-aneksajo/modules/annex
Matthias Riße f666490ba8 fix: do not propagate errors from validity check (#89)
The `checkValidity` function returns `false, err` if its `git config`
call returns an error. For renamed repositories the cached path no
longer exists, which makes `git config` return an error. When
`checkValidity` returns an error value it short-circuited the cache
lookup, instead of deleting the stale entry and retrying. This made the
`AnnexP2PHTTP` route 404.

This is fixed by ignoring the error from `checkValidity` entirely.

Fixes #88.

Reviewed-on: https://codeberg.org/forgejo-aneksajo/forgejo-aneksajo/pulls/89
Co-authored-by: Matthias Riße <m.risse@fz-juelich.de>
Co-committed-by: Matthias Riße <m.risse@fz-juelich.de>
2025-09-20 18:06:01 +02:00
..
annex.go fix: do not propagate errors from validity check (#89) 2025-09-20 18:06:01 +02:00