summaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-05-28 09:07:14 +0800
committerGitHub <noreply@github.com>2023-05-28 01:07:14 +0000
commit2f149c5c9db97f20fbbc65e32d1f3133048b11a2 (patch)
tree5ba9cbca56fadf9c89ffc0a96172ee335b14a4fb /custom
parent0d54395fb544d52585046bf0424659cec0626e31 (diff)
downloadgitea-2f149c5c9db97f20fbbc65e32d1f3133048b11a2.tar.gz
gitea-2f149c5c9db97f20fbbc65e32d1f3133048b11a2.zip
Use `[git.config]` for reflog cleaning up (#24958)
Follow https://github.com/go-gitea/gitea/pull/24860#discussion_r1200589651 Use `[git.config]` for reflog cleaning up, the new options are more flexible. * https://git-scm.com/docs/git-config#Documentation/git-config.txt-corelogAllRefUpdates * https://git-scm.com/docs/git-config#Documentation/git-config.txt-gcreflogExpire ## :warning: BREAKING The section `[git.reflog]` is now obsolete and its keys have been moved to the following replacements: - `[git.reflog].ENABLED` → `[git.config].core.logAllRefUpdates` - `[git.reflog].EXPIRATION` → `[git.config].gc.reflogExpire`
Diffstat (limited to 'custom')
-rw-r--r--custom/conf/app.example.ini8
1 files changed, 2 insertions, 6 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 44445579bd..8124092c90 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -694,16 +694,12 @@ LEVEL = Info
;GC = 60
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;; Git Reflog timeout in days
-;[git.reflog]
-;ENABLED = true
-;EXPIRATION = 90
-
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Git config options
;; This section only does "set" config, a removed config key from this section won't be removed from git config automatically. The format is `some.configKey = value`.
;[git.config]
;diff.algorithm = histogram
+;core.logAllRefUpdates = true
+;gc.reflogExpire = 90
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;