Backport #30877
This commit is contained in:
parent
ad5a8d043c
commit
d5563be0ee
28 changed files with 116 additions and 146 deletions
|
@ -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.DefaultFeatures.SupportProcReceive {
|
||||
if git.DefaultFeatures().SupportProcReceive {
|
||||
accessMode = perm.AccessModeRead
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue