aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd/hook.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cmd/hook.go')
-rw-r--r--internal/cmd/hook.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/cmd/hook.go b/internal/cmd/hook.go
index c6b2d952..1d103d47 100644
--- a/internal/cmd/hook.go
+++ b/internal/cmd/hook.go
@@ -23,8 +23,8 @@ import (
"gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/db"
"gogs.io/gogs/internal/db/errors"
- "gogs.io/gogs/internal/httplib"
"gogs.io/gogs/internal/email"
+ "gogs.io/gogs/internal/httplib"
"gogs.io/gogs/internal/template"
)
@@ -198,7 +198,6 @@ 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()
email.NewContext()
isWiki := strings.Contains(os.Getenv(db.ENV_REPO_CUSTOM_HOOKS_PATH), ".wiki.git/")