summaryrefslogtreecommitdiffstats
path: root/serve.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-08 12:41:33 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-08 12:41:33 -0400
commit115a349131242201953a3f5693141679049355c6 (patch)
tree5509a46e5d6866cd573c03a41484d58c12cb6cae /serve.go
parent22feddf804c7fbf3418cbbc8e7302da271da4e5a (diff)
downloadgitea-115a349131242201953a3f5693141679049355c6.tar.gz
gitea-115a349131242201953a3f5693141679049355c6.zip
Fix #67
Diffstat (limited to 'serve.go')
-rw-r--r--serve.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/serve.go b/serve.go
index 7e00db4734..3843da617e 100644
--- a/serve.go
+++ b/serve.go
@@ -177,10 +177,7 @@ func runServ(k *cli.Context) {
qlog.Fatal("Unknown command")
}
- // for update use
- os.Setenv("userName", user.Name)
- os.Setenv("userId", strconv.Itoa(int(user.Id)))
- os.Setenv("repoName", repoName)
+ models.SetRepoEnvs(user.Id, user.Name, repoName)
gitcmd := exec.Command(verb, repoPath)
gitcmd.Dir = base.RepoRootPath