]> source.dussan.org Git - gitea.git/commit
Fix storage config implementation (#14091)
author胡玮文 <huww98@outlook.com>
Mon, 21 Dec 2020 17:59:18 +0000 (01:59 +0800)
committerGitHub <noreply@github.com>
Mon, 21 Dec 2020 17:59:18 +0000 (18:59 +0100)
commitaddd4248daf2f90c5ce54f2d37c268ebab491b4a
treeca0b73e9debcea7a59e797c8deaf387fda068b95
parent9271040c21580963a6f26a13cf4510893242c572
Fix storage config implementation (#14091)

The design is very flexible, but not implemented correctly.
This commit fixes several issues:
* Costom storage type stated in https://docs.gitea.io/en-us/config-cheat-sheet/#storage-storage
  not working
* [storage.attachments], [storage.minio] section not respected

Signed-off-by: 胡玮文 <huww98@outlook.com>
modules/setting/storage.go
modules/setting/storage_test.go [new file with mode: 0644]