Files
gitea/modules/setting
c26daf578f fix(git): leave reflog expiry to git's defaults (#39703) (#39711)
Backport #39703 by @silverwind

Gitea's default `gc.reflogExpire = 90` is parsed by git as
`1990-<month>-<day>`, currently `1990-10-09`, so reachable reflog
entries never expired.

Since git 2.54, auto maintenance runs its reflog-expire task in the
foreground of every push, and its trigger ignores reachability, so busy
repos rerun `git reflog expire --all` on every push without pruning
anything, stalling large repos for over a minute.

- Stop setting `gc.reflogExpire` so git's own defaults apply, and remove
the `90` written by earlier versions
- Treat the legacy `[git.reflog] EXPIRATION` as days, as documented

The next push to each repo prunes the accumulated entries once.

Fixes: https://github.com/go-gitea/gitea/issues/39693

Co-authored-by: silverwind <me@silverwind.io>
2026-10-10 00:36:00 -07:00
..
2026-06-08 17:16:22 +00:00
2026-09-23 23:14:31 +00:00
2026-02-22 08:01:43 +01:00
2026-09-12 08:15:23 +00:00
2026-09-12 08:15:23 +00:00
2026-08-05 00:17:07 +08:00
2023-07-04 18:36:08 +00:00
2025-10-23 08:35:48 +00:00
2025-03-31 01:53:48 -04:00
2026-08-11 18:01:02 +02:00
2026-09-23 23:14:31 +00:00
2026-09-23 23:14:31 +00:00
2026-09-23 23:14:31 +00:00
2026-09-23 23:14:31 +00:00