mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 06:39:40 +01:00
Remove env user salt since no need to use (#1515)
* remove env user salt since no need to use * remove unused variable from update.go
This commit is contained in:
parent
9a0b0da1fe
commit
930d1759ae
3 changed files with 0 additions and 4 deletions
|
@ -164,8 +164,6 @@ func runServ(c *cli.Context) error {
|
||||||
fail("Internal error", "Failed to get repository owner (%s): %v", username, err)
|
fail("Internal error", "Failed to get repository owner (%s): %v", username, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
os.Setenv(models.EnvRepoUserSalt, repoUser.Salt)
|
|
||||||
|
|
||||||
repo, err := models.GetRepositoryByName(repoUser.ID, reponame)
|
repo, err := models.GetRepositoryByName(repoUser.ID, reponame)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if models.IsErrRepoNotExist(err) {
|
if models.IsErrRepoNotExist(err) {
|
||||||
|
|
|
@ -19,7 +19,6 @@ import (
|
||||||
const (
|
const (
|
||||||
EnvRepoName = "GITEA_REPO_NAME"
|
EnvRepoName = "GITEA_REPO_NAME"
|
||||||
EnvRepoUsername = "GITEA_REPO_USER_NAME"
|
EnvRepoUsername = "GITEA_REPO_USER_NAME"
|
||||||
EnvRepoUserSalt = "GITEA_REPO_USER_SALT"
|
|
||||||
EnvRepoIsWiki = "GITEA_REPO_IS_WIKI"
|
EnvRepoIsWiki = "GITEA_REPO_IS_WIKI"
|
||||||
EnvPusherName = "GITEA_PUSHER_NAME"
|
EnvPusherName = "GITEA_PUSHER_NAME"
|
||||||
EnvPusherID = "GITEA_PUSHER_ID"
|
EnvPusherID = "GITEA_PUSHER_ID"
|
||||||
|
|
|
@ -207,7 +207,6 @@ func HTTP(ctx *context.Context) {
|
||||||
environ = []string{
|
environ = []string{
|
||||||
models.EnvRepoUsername + "=" + username,
|
models.EnvRepoUsername + "=" + username,
|
||||||
models.EnvRepoName + "=" + reponame,
|
models.EnvRepoName + "=" + reponame,
|
||||||
models.EnvRepoUserSalt + "=" + repoUser.Salt,
|
|
||||||
models.EnvPusherName + "=" + authUser.Name,
|
models.EnvPusherName + "=" + authUser.Name,
|
||||||
models.EnvPusherID + fmt.Sprintf("=%d", authUser.ID),
|
models.EnvPusherID + fmt.Sprintf("=%d", authUser.ID),
|
||||||
models.ProtectedBranchRepoID + fmt.Sprintf("=%d", repo.ID),
|
models.ProtectedBranchRepoID + fmt.Sprintf("=%d", repo.ID),
|
||||||
|
|
Loading…
Reference in a new issue