mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-08-06 01:37:25 +08:00
Fix #67
This commit is contained in:
5
serve.go
5
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
|
||||
|
Reference in New Issue
Block a user