Commit Graph

8 Commits (48183d2b05e2f71f16289d994a11c5fa0e6b4e69)

Author SHA1 Message Date
wxiaoguang dafadf0028
Refactor fixture loading for testing ()
To help binary size and testing performance
Oleksandr Redko 1761459ebc
Refactor to use UnsafeStringToBytes ()
The PR replaces all `goldmark/util.BytesToReadOnlyString` with
`util.UnsafeBytesToString`, `goldmark/util.StringToReadOnlyBytes` with
`util.UnsafeStringToBytes`. This removes one `TODO`.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Lunny Xiao cddf245c12
Replace more db.DefaultContext ()
Target 
Lunny Xiao 673cf6af76
make writing main test easier ()
This PR removed `unittest.MainTest` the second parameter
`TestOptions.GiteaRoot`. Now it detects the root directory by current
working directory.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files ()
Change all license headers to comply with REUSE specification.

Fix 

Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Lunny Xiao 385462d36c
Fix dashboard ignored system setting cache ()
This is a performance regression from 

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Jason Song 60dc48dc00
Sync git hooks when config file path changed ()
A patch to .

Just like AppPath, Gitea writes its own CustomConf into git hook scripts
too. If Gitea's CustomConf changes, then the git push may fail.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Lunny Xiao f860a6d2e4
Add system setting table with cache and also add cache supports for user setting ()