Skip to content

Commit 9cf0f0b

Browse files
authored
Fix gitea doctor will remove repo-avatar files when execute command storage-archives (#30094)
Fix #30037
1 parent a4455d3 commit 9cf0f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/doctor/storage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func checkStorage(opts *checkStorageOptions) func(ctx context.Context, logger lo
162162
if opts.RepoArchives || opts.All {
163163
if err := commonCheckStorage(ctx, logger, autofix,
164164
&commonStorageCheckOptions{
165-
storer: storage.RepoAvatars,
165+
storer: storage.RepoArchives,
166166
isOrphaned: func(path string, obj storage.Object, stat fs.FileInfo) (bool, error) {
167167
exists, err := repo.ExistsRepoArchiverWithStoragePath(ctx, path)
168168
if err == nil || errors.Is(err, util.ErrInvalidArgument) {

0 commit comments

Comments
 (0)