Skip to content

Commit

Permalink
Fix gitea doctor will remove repo-avatar files when execute command `…
Browse files Browse the repository at this point in the history
…storage-archives` (go-gitea#30094)

Fix go-gitea#30037
  • Loading branch information
yp05327 committed Mar 26, 2024
1 parent a4455d3 commit 9cf0f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/doctor/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func checkStorage(opts *checkStorageOptions) func(ctx context.Context, logger lo
if opts.RepoArchives || opts.All {
if err := commonCheckStorage(ctx, logger, autofix,
&commonStorageCheckOptions{
storer: storage.RepoAvatars,
storer: storage.RepoArchives,
isOrphaned: func(path string, obj storage.Object, stat fs.FileInfo) (bool, error) {
exists, err := repo.ExistsRepoArchiverWithStoragePath(ctx, path)
if err == nil || errors.Is(err, util.ErrInvalidArgument) {
Expand Down

0 comments on commit 9cf0f0b

Please sign in to comment.