gitea/services/cron
Giteabot e11176192a
Fix a bug where lfs gc never worked. (#35198) (#35255)
Backport #35198 by @lunny

Fix #31113

After #22385 introduced LFS GC, it never worked due to a bug in the INI
library: fields in structs embedded more than one level deep are not
populated from the INI file.

This PR fixes the issue by replacing the multi-level embedded struct
with a single-level struct for parsing the cron.gc_lfs configuration.

Added a new test for retrieving cron settings to demonstrate the bug in
the INI package.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-08-12 10:57:50 +03:00
..
cron.go Fix data-race bug when accessing task.LastRun (#27584) 2023-10-11 14:51:20 +00:00
setting.go Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
tasks.go Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
tasks_actions.go Clear up old Actions logs (#31735) 2024-08-02 00:42:08 +00:00
tasks_basic.go Use default Git timeout when checking repo health (#33593) 2025-02-14 15:13:56 +00:00
tasks_extended.go Fix a bug where lfs gc never worked. (#35198) (#35255) 2025-08-12 10:57:50 +03:00
tasks_extended_test.go Fix a bug where lfs gc never worked. (#35198) (#35255) 2025-08-12 10:57:50 +03:00
tasks_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00