Skip to content

Revise server side hook configuration to support dynamic hook file extensions. #30985

@jozseffenyes

Description

@jozseffenyes

Feature Description

In the /modules/git/hook.go file each hook is hardcoded without a file extension, causing inconvenience in deploying any script git hook other than bash on Gitea.

Within modules/git/hook.go, the variable "hookNames" is defined as an array without file extensions:

var hookNames = []string{ "pre-receive", "update", "post-receive", }

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailtype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions