1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/modules/storage
zeripath 5da8a84328
Fix Storage mapping (#13297) (#13307)
* Fix Storage mapping (#13297)

Backport #13297

This PR fixes several bugs in setting storage

* The default STORAGE_TYPE should be the provided type.
* The Storage config should be passed in to NewStorage as a pointer - otherwise the Mappable interface function MapTo will not be found
* There was a bug in the MapTo function.

Fix #13286

Signed-off-by: Andrew Thornton <art27@cantab.net>

* add missing changes from backport #13164

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-10-25 21:40:46 -04:00
..
helper.go Provide self-registering storage system (#12978) 2020-10-12 23:58:34 -04:00
local.go Fix Storage mapping (#13297) (#13307) 2020-10-25 21:40:46 -04:00
minio.go Fix Storage mapping (#13297) (#13307) 2020-10-25 21:40:46 -04:00
storage.go Fix Storage mapping (#13297) (#13307) 2020-10-25 21:40:46 -04:00