diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-08 12:41:33 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-08 12:41:33 -0400 |
commit | 115a349131242201953a3f5693141679049355c6 (patch) | |
tree | 5509a46e5d6866cd573c03a41484d58c12cb6cae /serve.go | |
parent | 22feddf804c7fbf3418cbbc8e7302da271da4e5a (diff) | |
download | gitea-115a349131242201953a3f5693141679049355c6.tar.gz gitea-115a349131242201953a3f5693141679049355c6.zip |
Fix #67
Diffstat (limited to 'serve.go')
-rw-r--r-- | serve.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 |