Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-peterson committed Mar 6, 2023
1 parent 38c93b6 commit dfed9bf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfed9bf

Please sign in to comment.