aboutsummaryrefslogtreecommitdiff
path: root/serve.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-04-10 22:22:18 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-04-10 22:22:18 +0800
commit88d873c67f2940325a2a7a8aa851372c9afb983d (patch)
tree53908c92ebc0dbce9ae935b72eb4b959d55a587c /serve.go
parent94c7278194694fec728b518d4390b03ba6c237a4 (diff)
parent6b30d9b0f27a8cb0961d52980a8e655d9a0bbda2 (diff)
Merge branch 'dev' of github.com:gogits/gogs into dev
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 7e00db47..3843da61 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