gitea/services/cron
Lunny Xiao 90a48e96c7
Fix a bug where lfs gc never worked. (#35198)
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.
2025-08-12 05:38:17 +07:00
..
cron.go
setting.go
tasks.go
tasks_actions.go
tasks_basic.go
tasks_extended.go Fix a bug where lfs gc never worked. (#35198) 2025-08-12 05:38:17 +07:00
tasks_extended_test.go Fix a bug where lfs gc never worked. (#35198) 2025-08-12 05:38:17 +07:00
tasks_test.go