summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd/serv.go2
-rw-r--r--models/update.go1
-rw-r--r--routers/repo/http.go1
3 files changed, 0 insertions, 4 deletions
diff --git a/cmd/serv.go b/cmd/serv.go
index f7d025c68e..def19fc555 100644
--- a/cmd/serv.go
+++ b/cmd/serv.go
@@ -164,8 +164,6 @@ func runServ(c *cli.Context) error {
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)
if err != nil {
if models.IsErrRepoNotExist(err) {
diff --git a/models/update.go b/models/update.go
index 7ee00f2c27..cd22189f6a 100644
--- a/models/update.go
+++ b/models/update.go
@@ -19,7 +19,6 @@ import (
const (
EnvRepoName = "GITEA_REPO_NAME"
EnvRepoUsername = "GITEA_REPO_USER_NAME"
- EnvRepoUserSalt = "GITEA_REPO_USER_SALT"
EnvRepoIsWiki = "GITEA_REPO_IS_WIKI"
EnvPusherName = "GITEA_PUSHER_NAME"
EnvPusherID = "GITEA_PUSHER_ID"
diff --git a/routers/repo/http.go b/routers/repo/http.go
index 9c2ec4d029..82c07b9d85 100644
--- a/routers/repo/http.go
+++ b/routers/repo/http.go
@@ -207,7 +207,6 @@ func HTTP(ctx *context.Context) {
environ = []string{
models.EnvRepoUsername + "=" + username,
models.EnvRepoName + "=" + reponame,
- models.EnvRepoUserSalt + "=" + repoUser.Salt,
models.EnvPusherName + "=" + authUser.Name,
models.EnvPusherID + fmt.Sprintf("=%d", authUser.ID),
models.ProtectedBranchRepoID + fmt.Sprintf("=%d", repo.ID),