Skip to content

Commit

Permalink
Fix SyncOnCommit always return false in API of push_mirrors (go-gitea…
Browse files Browse the repository at this point in the history
…#23088) (go-gitea#23100)

Backport go-gitea#23088

Fix: go-gitea#22990

---
Before, the return value of the api is always false,regrardless of
whether the entry of `sync_on_commit` is true or false.
I have confirmed that the value of `sync_on_commit` dropped into the
database is correct.
So, I think it is enough to make some small changes.

Co-authored-by: sillyguodong <33891828+sillyguodong@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
  • Loading branch information
3 people authored Feb 24, 2023
1 parent ddf6137 commit 4d3e2b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/convert/mirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func ToPushMirror(pm *repo_model.PushMirror) (*api.PushMirror, error) {
LastUpdateUnix: pm.LastUpdateUnix.FormatLong(),
LastError: pm.LastError,
Interval: pm.Interval.String(),
SyncOnCommit: pm.SyncOnCommit,
}, nil
}

Expand Down

0 comments on commit 4d3e2b2

Please sign in to comment.