We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38c93b6 commit dfed9bfCopy full SHA for dfed9bf
modules/git/git.go
@@ -205,11 +205,7 @@ func enableReflogs() error {
205
if err := configSet("core.logAllRefUpdates", "true"); err != nil {
206
return err
207
}
208
- if setting.Git.Reflog.Expiration != 90 {
209
- if err := configSet("gc.reflogExpire", fmt.Sprintf("%d", setting.Git.Reflog.Expiration)); err != nil {
210
- return err
211
- }
212
- } else if err := configUnsetAll("gc.reflogExpire", ""); err != nil {
+ if err := configSet("gc.reflogExpire", fmt.Sprintf("%d", setting.Git.Reflog.Expiration)); err != nil {
213
214
215
return nil
0 commit comments