Skip to content

Commit 0c10c3a

Browse files
authored
Fix gitea doctor will remove repo-avatar files when execute command storage-archives (#30094) (#30120)
backport #30094
1 parent 09a5067 commit 0c10c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/doctor/storage.go

Lines changed: 1 addition & 1 deletion
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)