aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/pull.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-23 14:09:43 -0500
committerUnknwon <u@gogs.io>2017-02-27 22:47:12 -0500
commit87f0ce793da616dfea3280bf37174642b05e0ce5 (patch)
tree2b967cde9f2cc30b9572a035301311e43f265ec4 /routers/repo/pull.go
parent25cf755f3082db7c35b329a5a7abf916150c13f8 (diff)
repo: able to perform initial commit on behave of actual user
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r--routers/repo/pull.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index 64f77c2c..54a59acd 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -124,7 +124,7 @@ func ForkPost(ctx *context.Context, f form.CreateRepo) {
return
}
- repo, err := models.ForkRepository(ctxUser, forkRepo, f.RepoName, f.Description)
+ repo, err := models.ForkRepository(ctx.User, ctxUser, forkRepo, f.RepoName, f.Description)
if err != nil {
ctx.Data["Err_RepoName"] = true
switch {