From dfed9bfe8e62a1fb7c520015ac1fe974b15f1e19 Mon Sep 17 00:00:00 2001 From: Philip Peterson Date: Sun, 5 Mar 2023 23:00:44 -0500 Subject: [PATCH] PR feedback --- modules/git/git.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/git/git.go b/modules/git/git.go index 2b5f1a803f892..8343d00bf10ed 100644 --- a/modules/git/git.go +++ b/modules/git/git.go @@ -205,11 +205,7 @@ func enableReflogs() error { if err := configSet("core.logAllRefUpdates", "true"); err != nil { return err } - if setting.Git.Reflog.Expiration != 90 { - if err := configSet("gc.reflogExpire", fmt.Sprintf("%d", setting.Git.Reflog.Expiration)); err != nil { - return err - } - } else if err := configUnsetAll("gc.reflogExpire", ""); err != nil { + if err := configSet("gc.reflogExpire", fmt.Sprintf("%d", setting.Git.Reflog.Expiration)); err != nil { return err } return nil