summaryrefslogtreecommitdiffstats
path: root/serve.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-22 04:44:57 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-22 04:44:57 -0400
commit932f717adb1cb1738415fcddaf5eb3c0e4a60fc2 (patch)
tree60a13dd51c6016901f0f262b00635efa25bf1a93 /serve.go
parentf219ddcf4ef13b9d5de129da4eb2b56dbc899d61 (diff)
downloadgitea-932f717adb1cb1738415fcddaf5eb3c0e4a60fc2.tar.gz
gitea-932f717adb1cb1738415fcddaf5eb3c0e4a60fc2.zip
Fixing bug
Diffstat (limited to 'serve.go')
-rw-r--r--serve.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/serve.go b/serve.go
index 3ce8f9046c..be8dedc985 100644
--- a/serve.go
+++ b/serve.go
@@ -86,7 +86,7 @@ func runServ(*cli.Context) {
os.Setenv("userName", user.Name)
os.Setenv("userId", strconv.Itoa(int(user.Id)))
- repo, err := models.GetRepositoryByName(user, repoName)
+ repo, err := models.GetRepositoryByName(user.Id, repoName)
if err != nil {
println("Unavilable repository", err)
return