gitea/modules/setting
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
..
attachment.go Provide self-registering storage system (#12978) 2020-10-12 23:58:34 -04:00
cache.go
cors.go
cron_test.go Allow extended config on cron settings (#12939) 2020-09-25 09:58:09 +01:00
cron.go
database_sqlite.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
database_test.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
database.go Avatars and Repo avatars support storing in minio (#12516) 2020-10-14 21:07:51 +08:00
git.go fix a small nit (#13074) 2020-10-08 11:50:17 -04:00
indexer_test.go
indexer.go
lfs.go Provide self-registering storage system (#12978) 2020-10-12 23:58:34 -04:00
log.go Pause, Resume, Release&Reopen, Add and Remove Logging from command line (#11777) 2020-07-05 20:07:07 -04:00
mailer.go
markup.go Fix sanitizer config - multiple rules (#11133) 2020-04-29 12:34:59 +01:00
migrations.go
picture.go Avatars and Repo avatars support storing in minio (#12516) 2020-10-14 21:07:51 +08:00
project.go
queue.go Avoid setitng the CONN_STR in queues unless it is meant to be set (#13025) 2020-10-04 18:12:26 +01:00
repository.go
service.go
session.go
setting.go Avatars and Repo avatars support storing in minio (#12516) 2020-10-14 21:07:51 +08:00
storage.go Fix Storage mapping (#13297) (#13307) 2020-10-25 21:40:46 -04:00
task.go Avoid setitng the CONN_STR in queues unless it is meant to be set (#13025) 2020-10-04 18:12:26 +01:00
webhook.go