diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-02-25 13:35:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-25 05:35:47 +0000 |
commit | 1ef87773b1e75b99b4b842303542fd17d9c2e6f7 (patch) | |
tree | 6166ed87694fc257fba7bf7cdfaad9d39eddac5a /routers/web/repo | |
parent | 4e3d81e44ee3f504f7262966533305561e04101f (diff) | |
download | gitea-1ef87773b1e75b99b4b842303542fd17d9c2e6f7.tar.gz gitea-1ef87773b1e75b99b4b842303542fd17d9c2e6f7.zip |
Refactor modules/git global variables (#29376)
Move some global variables into a struct to improve maintainability
Diffstat (limited to 'routers/web/repo')
-rw-r--r-- | routers/web/repo/githttp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/githttp.go b/routers/web/repo/githttp.go index f52abbfb02..27c7f4961d 100644 --- a/routers/web/repo/githttp.go +++ b/routers/web/repo/githttp.go @@ -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 } |