Giteabot and silverwind
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-06-28 09:31:35 +00:00
2026-09-26 07:42:36 +00:00
2026-05-26 15:49:31 -07:00
2026-09-23 23:14:31 +00:00
2023-04-12 18:16:45 +08:00
2023-04-12 18:16:45 +08:00
2025-03-31 01:53:48 -04: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-07-24 08:11:20 +00:00
2026-08-05 00:17:07 +08:00
2026-05-26 15:49:31 -07:00
2025-06-27 21:48:03 +08:00
2026-08-24 07:28:17 +00:00
2026-05-26 15:49:31 -07:00
2026-08-31 19:48:59 +00:00
2026-08-31 19:48:59 +00:00
2026-05-26 15:49:31 -07:00
2026-02-22 20:26:46 +00:00
2025-08-12 05:38:17 +00:00
2023-07-04 18:36:08 +00:00
2026-05-26 05:06:54 +00:00
2026-05-26 15:49:31 -07:00
2026-10-10 00:36:00 -07:00
2026-10-10 00:36:00 -07:00
2026-05-26 15:49:31 -07:00
2026-07-24 08:11:20 +00:00
2026-07-24 08:11:20 +00:00
2024-06-15 11:43:57 +08:00
2023-02-20 00:12:01 +08:00
2024-12-21 04:56:08 +00:00
2026-05-26 15:49:31 -07:00
2025-10-23 08:35:48 +00:00
2026-05-26 15:49:31 -07:00
2025-03-31 01:53:48 -04:00
2026-08-31 19:48:59 +00:00
2026-05-26 15:49:31 -07:00
2026-08-31 19:48:59 +00:00
2026-05-26 15:49:31 -07:00
2026-08-31 19:48:59 +00:00
2025-04-05 11:56:48 +08:00
2026-08-11 18:01:02 +02:00
2023-02-20 00:12:01 +08:00
2026-09-29 14:43:36 +02:00
2026-09-29 14:43:36 +02:00
2023-02-20 00:12:01 +08:00
2026-05-26 15:49:31 -07:00
2026-08-12 14:34:22 +00:00
2026-08-12 14:34:22 +00:00
2026-05-26 15:49:31 -07:00
2025-03-31 01:53:48 -04:00
2026-08-27 15:31:20 +00:00
2023-06-21 13:50:26 +08:00
2026-07-24 08:11:20 +00:00
2026-08-31 19:48:59 +00:00
2023-02-20 00:12:01 +08:00
2026-05-26 15:49:31 -07:00
2026-07-24 08:11:20 +00:00
2026-07-24 08:11:20 +00:00
2026-07-24 08:11:20 +00:00
2025-03-31 01:53:48 -04:00
2023-06-14 11:42:38 +08:00
2026-05-28 19:29:32 +02:00
2026-10-08 12:30:59 +00:00
2026-09-29 14:43:36 +02:00
2026-09-29 14:43:36 +02:00
2026-09-24 10:30:25 +00:00
2026-07-16 17:38:33 +00:00
2026-09-23 23:14:31 +00:00
2026-07-24 08:11:20 +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
2025-03-31 01:53:48 -04:00
2026-09-16 17:06:00 +02:00
2026-08-31 19:48:59 +00:00
2026-09-18 17:07:45 +08:00
2026-05-26 15:49:31 -07:00
2026-07-27 07:46:00 +00:00
2026-09-29 14:43:36 +02:00
2026-07-27 07:46:00 +00:00
2026-07-27 07:46:00 +00:00