Refactor modules/git global variables (#29376)

Move some global variables into a struct to improve maintainability
这个提交包含在:
wxiaoguang
2024-02-25 05:35:47 +00:00
提交者 GitHub
父节点 4e3d81e44e
当前提交 1ef87773b1
修改 8 个文件,包含 27 行新增25 行删除
+1 -1
查看文件
@@ -183,7 +183,7 @@ func httpBase(ctx *context.Context) *serviceHandler {
if repoExist {
// Because of special ref "refs/for" .. , need delay write permission check
if git.SupportProcReceive {
if git.DefaultFeatures.SupportProcReceive {
accessMode = perm.AccessModeRead
}