Simplify mirror repository API logic (#30963)

Fix #30921

(cherry picked from commit 821d2fc2a3cc897f21d707455850177077b72410)
(cherry picked from commit 50b4e7f26e)

Equivalent to the Gitea v1.22 commit
(cherry picked from commit 8eac16de217978c1f7034f8e360f54d8d638e95e)
This commit is contained in:
wxiaoguang 2024-05-18 00:07:41 +08:00 committed by Earl Warren
parent 50ef4ecefe
commit 1fd1100ac9
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 5 additions and 11 deletions

View file

@ -20115,7 +20115,7 @@
"x-go-name": "Description"
},
"enable_prune": {
"description": "enable prune - remove obsolete remote-tracking references",
"description": "enable prune - remove obsolete remote-tracking references when mirroring",
"type": "boolean",
"x-go-name": "EnablePrune"
},