Skip to content

Commit

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

backport #30094
  • Loading branch information
yp05327 authored Mar 27, 2024
1 parent 09a5067 commit 0c10c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/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 0c10c3a

Please sign in to comment.