]> source.dussan.org Git - gitea.git/commit
Fix SyncOnCommit always return false in API of push_mirrors (#23088) (#23100)
authorYarden Shoham <hrsi88@gmail.com>
Fri, 24 Feb 2023 06:36:25 +0000 (08:36 +0200)
committerGitHub <noreply@github.com>
Fri, 24 Feb 2023 06:36:25 +0000 (14:36 +0800)
commit4d3e2b23b86f5be8eaf649980ed3fa81b5997e3b
treeacbf80e89d513e10b14bda6825a472ec65cb2655
parentddf61373f691a584844f141bc4728948fe142dc3
Fix SyncOnCommit always return false in API of push_mirrors (#23088) (#23100)

Backport #23088

Fix: #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>
services/convert/mirror.go