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

Function Fork

internal/route/repo/pull.go:84–94  ·  view source on GitHub ↗
(c *context.Context)

Source from the content-addressed store, hash-verified

82}
83
84func Fork(c *context.Context) {
85 c.Data["Title"] = c.Tr("new_fork")
86
87 parseBaseRepository(c)
88 if c.Written() {
89 return
90 }
91
92 c.Data["ContextUser"] = c.User
93 c.Success(tmplRepoPullsFork)
94}
95
96func ForkPost(c *context.Context, f form.CreateRepo) {
97 c.Data["Title"] = c.Tr("new_fork")

Callers

nothing calls this directly

Calls 3

parseBaseRepositoryFunction · 0.85
TrMethod · 0.80
SuccessMethod · 0.80

Tested by

no test coverage detected