Fix Collaborators cannot commit
This commit is contained in:
parent
e10096ee2e
commit
7b60756f2c
7 changed files with 45 additions and 36 deletions
|
@ -175,7 +175,7 @@ func runServ(k *cli.Context) {
|
|||
qlog.Fatal("Unknown command")
|
||||
}
|
||||
|
||||
models.SetRepoEnvs(user.Id, user.Name, repoName)
|
||||
models.SetRepoEnvs(user.Id, user.Name, repoName, repoUserName)
|
||||
|
||||
gitcmd := exec.Command(verb, repoPath)
|
||||
gitcmd.Dir = base.RepoRootPath
|
||||
|
|
|
@ -76,10 +76,10 @@ func runUpdate(c *cli.Context) {
|
|||
//updateEnv(args[0], args[1], args[2])
|
||||
|
||||
userName := os.Getenv("userName")
|
||||
userId := os.Getenv("userId")
|
||||
iUserId, _ := strconv.ParseInt(userId, 10, 64)
|
||||
userId, _ := strconv.ParseInt(os.Getenv("userId"), 10, 64)
|
||||
//repoId := os.Getenv("repoId")
|
||||
repoUserName := os.Getenv("repoUserName")
|
||||
repoName := os.Getenv("repoName")
|
||||
|
||||
models.Update(args[0], args[1], args[2], userName, repoName, iUserId)
|
||||
models.Update(args[0], args[1], args[2], userName, repoUserName, repoName, userId)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue