aboutsummaryrefslogtreecommitdiffstats
path: root/modules/structs
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-05-18 00:07:41 +0800
committerGitHub <noreply@github.com>2024-05-17 16:07:41 +0000
commit821d2fc2a3cc897f21d707455850177077b72410 (patch)
tree4ef79b19770147b16897bb7c66da3deb8a08a4b0 /modules/structs
parent68d5c18953620927101609bbd21508213cbcd589 (diff)
downloadgitea-821d2fc2a3cc897f21d707455850177077b72410.tar.gz
gitea-821d2fc2a3cc897f21d707455850177077b72410.zip
Simplify mirror repository API logic (#30963)
Fix #30921
Diffstat (limited to 'modules/structs')
-rw-r--r--modules/structs/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/structs/repo.go b/modules/structs/repo.go
index bc8eb0b756..1fe826cf89 100644
--- a/modules/structs/repo.go
+++ b/modules/structs/repo.go
@@ -217,7 +217,7 @@ type EditRepoOption struct {
Archived *bool `json:"archived,omitempty"`
// set to a string like `8h30m0s` to set the mirror interval time
MirrorInterval *string `json:"mirror_interval,omitempty"`
- // enable prune - remove obsolete remote-tracking references
+ // enable prune - remove obsolete remote-tracking references when mirroring
EnablePrune *bool `json:"enable_prune,omitempty"`
}