mirror of
1
Fork 0
forgejo/modules/doctor
Giteabot c5ac659d1b
Initalize stroage for orphaned repository doctor (#28487) (#28490)
Backport #28487 by @earl-warren

- When a repository is orphaned and has objects stored in any of the
storages such as repository avatar or attachments the delete function
would error, because the storage module wasn't initalized.
- Add code to initialize the storage module.

Refs: https://codeberg.org/forgejo/forgejo/pulls/1954

Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
Co-authored-by: Gusted <postmaster@gusted.xyz>
(cherry picked from commit 8ee1ed877b)
2023-12-22 12:05:11 +01:00
..
authorizedkeys.go Another round of `db.DefaultContext` refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
breaking.go
checkOldArchives.go
dbconsistency.go Remove action runners on user deletion (#27902) (#27908) 2023-11-05 13:20:00 +00:00
dbversion.go
doctor.go
fix8312.go Reduce usage of `db.DefaultContext` (#27073) 2023-09-14 17:09:32 +00:00
fix16961.go Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
fix16961_test.go
heads.go
lfs.go Simplify the LFS GC logger usage (#25717) 2023-07-06 16:52:41 +00:00
mergebase.go
misc.go Upgrade go dependencies (#25819) 2023-07-14 11:00:31 +08:00
paths.go
push_mirror_consistency.go [GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853) 2023-12-01 13:56:03 +00:00
repository.go Initalize stroage for orphaned repository doctor (#28487) (#28490) 2023-12-22 12:05:11 +01:00
storage.go
usertype.go Reduce usage of `db.DefaultContext` (#27073) 2023-09-14 17:09:32 +00:00