We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d5f31f commit 1544246Copy full SHA for 1544246
cmd/hook.go
@@ -181,18 +181,7 @@ Gitea or set your environment appropriately.`, "")
181
}
182
183
func runHookUpdate(c *cli.Context) error {
184
- if len(os.Getenv("SSH_ORIGINAL_COMMAND")) == 0 {
185
- if setting.OnlyAllowPushIfGiteaEnvironmentSet {
186
- fail(`Rejecting changes as Gitea environment not set.
187
-If you are pushing over SSH you must push with a key managed by
188
-Gitea or set your environment appropriately.`, "")
189
- } else {
190
- return nil
191
- }
192
193
-
194
- setup("hooks/update.log", false)
195
+ // Update is empty and is kept only for backwards compatibility
196
return nil
197
198
0 commit comments