summaryrefslogtreecommitdiffstats
path: root/modules/structs
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2024-05-18 16:26:20 +0800
committerGitHub <noreply@github.com>2024-05-18 08:26:20 +0000
commit8eac16de217978c1f7034f8e360f54d8d638e95e (patch)
treed9b8948329bffbe479f50833f9a2cba7027b6181 /modules/structs
parentbd3787c774adbbb0c7df834f5d4615dc795e7f6c (diff)
downloadgitea-8eac16de217978c1f7034f8e360f54d8d638e95e.tar.gz
gitea-8eac16de217978c1f7034f8e360f54d8d638e95e.zip
Simplify mirror repository API logic (#30963) (#31009)
Backport #30963 by wxiaoguang Fix #30921 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
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"`
}