Skip to content

Hooks fail silently if wrong permission #20771

Closed
@TheLovinator1

Description

@TheLovinator1

Description

Hi,

Context:
I moved my Gitea files from Linux -> Windows -> Linux and lost my permissions.

Problem:
If the files in /git/repositories/username/gitrepo.git/hooks have the wrong file permissions (644 instead of 755) the hooks will fail without any errors. This breaks webhooks and no changes will be seen on the frontpage.

What I expected:
Gitea should change the permissions to the correct one or you should at least get a error message in the logs or failed delivery under Recent Deliveries.

Gitea Version

1.18.0+dev-265-gc81b26b0e

Git Version

2.36.2

How are you running Gitea?

Running docker with the gitea/gitea:dev image

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions