aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-25 00:35:35 +0800
committerGitHub <noreply@github.com>2020-02-25 00:35:35 +0800
commit52ffb67b33c1823933948c027b6f3605fb42ea7c (patch)
treec93ee7eb2bb1f8417d350f703afc53cf4dd872f8 /internal/cmd
parent0d6c405ccbde9d20889893168f9f9599118e3f5c (diff)
conf: overhaul email settings (#5940)
Diffstat (limited to 'internal/cmd')
-rw-r--r--internal/cmd/hook.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/cmd/hook.go b/internal/cmd/hook.go
index 8c7cf91b..c6b2d952 100644
--- a/internal/cmd/hook.go
+++ b/internal/cmd/hook.go
@@ -24,7 +24,7 @@ import (
"gogs.io/gogs/internal/db"
"gogs.io/gogs/internal/db/errors"
"gogs.io/gogs/internal/httplib"
- "gogs.io/gogs/internal/mailer"
+ "gogs.io/gogs/internal/email"
"gogs.io/gogs/internal/template"
)
@@ -199,7 +199,7 @@ func runHookPostReceive(c *cli.Context) error {
// Post-receive hook does more than just gather Git information,
// so we need to setup additional services for email notifications.
conf.NewPostReceiveHookServices()
- mailer.NewContext()
+ email.NewContext()
isWiki := strings.Contains(os.Getenv(db.ENV_REPO_CUSTOM_HOOKS_PATH), ".wiki.git/")