gitea/services/doctor
Giteabot 5a9b3bfa50
add additional ReplaceAll in pathsep to cater for different pathsep (#34061) (#34070)
Backport #34061 by eeyrjmr

The doctor storage check reconstructs the lfs oid by producing a string
where the path separator is stripped
ab/dc/efg -> abdcefg. Windows however uses a backslash and thus the
ReplaceAll call doesn't produce the correct oid resulting in all lfs
objects being classed as orphaned.
This PR allows this to be more OS agnostic.

Closes #34039

Co-authored-by: JonRB <4564448+eeyrjmr@users.noreply.github.com>
2025-03-30 05:51:08 +00:00
..
actions.go Add a doctor check to disable the "Actions" unit for mirrors (#32424) 2024-11-10 23:37:24 +00:00
authorizedkeys.go Fix some pending problems (#29985) 2024-03-22 19:17:30 +08:00
breaking.go
checkOldArchives.go
dbconsistency_test.go Fix oauth2 builtin application logic (#30304) 2024-04-08 04:13:34 +00:00
dbconsistency.go Add a db consistency check to remove runners that do not belong to a repository (#30614) 2024-04-23 03:51:52 +00:00
dbversion.go Refactor the DB migration system slightly (#32344) 2024-10-27 19:54:35 +08:00
doctor.go Add optional doctor storage init (#30330) 2024-04-08 20:59:09 +00:00
fix8312.go Move team related functions to service layer (#32537) 2024-11-27 21:12:26 +00:00
fix16961_test.go
fix16961.go Fix panic for fixBrokenRepoUnits16961 (#30068) 2024-03-26 14:45:11 +08:00
heads.go
lfs.go
main_test.go Fix oauth2 builtin application logic (#30304) 2024-04-08 04:13:34 +00:00
mergebase.go
misc.go
paths.go
repository.go
storage.go add additional ReplaceAll in pathsep to cater for different pathsep (#34061) (#34070) 2025-03-30 05:51:08 +00:00
usertype.go