This commit is contained in:
Unknown 2014-04-08 12:41:33 -04:00
parent 22feddf804
commit 115a349131
9 changed files with 30 additions and 14 deletions

View file

@ -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