MCPcopy Create free account
hub / github.com/gogs/gogs / GitHookService

Function GitHookService

internal/context/repo.go:454–461  ·  view source on GitHub ↗

GitHookService checks if repository Git hooks service has been enabled.

()

Source from the content-addressed store, hash-verified

452
453// GitHookService checks if repository Git hooks service has been enabled.
454func GitHookService() macaron.Handler {
455 return func(c *Context) {
456 if !c.User.CanEditGitHook() {
457 c.NotFound()
458 return
459 }
460 }
461}

Callers 1

runWebFunction · 0.92

Calls 2

CanEditGitHookMethod · 0.80
NotFoundMethod · 0.65

Tested by

no test coverage detected