Sfoglia il codice sorgente

Fix gitea doctor will remove repo-avatar files when execute command `storage-archives` (#30094)

Fix #30037
tags/v1.22.0-rc0
yp05327 1 mese fa
parent
commit
9cf0f0bb04
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      services/doctor/storage.go

+ 1
- 1
services/doctor/storage.go Vedi File

@@ -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) {

Loading…
Annulla
Salva