Skip to content

Commit c368664

Browse files
sillyguodongyardenshoham
authored andcommitted
Fix SyncOnCommit always return false in API of push_mirrors (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.
1 parent ced94f2 commit c368664

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/convert/mirror.go

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ func ToPushMirror(pm *repo_model.PushMirror) (*api.PushMirror, error) {
2424
LastUpdateUnix: pm.LastUpdateUnix.FormatLong(),
2525
LastError: pm.LastError,
2626
Interval: pm.Interval.String(),
27+
SyncOnCommit: pm.SyncOnCommit,
2728
}, nil
2829
}
2930

0 commit comments

Comments
 (0)