mirror of
https://github.com/go-gitea/gitea
synced 2024-11-28 13:32:49 +01:00
e536d18fe5
Backport #31754 by @lunny When opening a repository, it will call `ensureValidRepository` and also `CatFileBatch`. But sometimes these will not be used until repository closed. So it's a waste of CPU to invoke 3 times git command for every open repository. This PR removed all of these from `OpenRepository` but only kept checking whether the folder exists. When a batch is necessary, the necessary functions will be invoked. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> |
||
---|---|---|
.. | ||
catfile.go | ||
lfs_common.go | ||
lfs_gogit.go | ||
lfs_nogogit.go | ||
namerev.go | ||
revlist.go |