@@ -122,7 +122,7 @@ func HookPreReceive(ctx *gitea_context.PrivateContext) { | |||
preReceiveBranch(ourCtx, oldCommitID, newCommitID, refFullName) | |||
case refFullName.IsTag(): | |||
preReceiveTag(ourCtx, oldCommitID, newCommitID, refFullName) | |||
case git.DefaultFeatures.SupportProcReceive && refFullName.IsFor(): | |||
case git.DefaultFeatures().SupportProcReceive && refFullName.IsFor(): | |||
preReceiveFor(ourCtx, oldCommitID, newCommitID, refFullName) | |||
default: | |||
ourCtx.AssertCanWriteCode() |