Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post-receive git hook fails because "test -x" returns incorrect exitcode #23141

Closed
chylek opened this issue Feb 25, 2023 · 2 comments
Closed
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/bug

Comments

@chylek
Copy link

chylek commented Feb 25, 2023

Description

Gitea's post-receive script (part of its git hook mechanism) is not executing scripts in post-receive.d.
Its test -x command to check for executable files in post-receive.d directory always exits with code 1, even when testing a file that has executable flag set.

Running in Docker, gitea 1.18.5.

May be related to alpinelinux/docker-alpine#156 and #21455.

Gitea Version

1.18.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Alpine in Docker 18.09.6

How are you running Gitea?

Using docker-compose as instructed by https://docs.gitea.io/en-us/install-with-docker

Database

MySQL

@wxiaoguang
Copy link
Contributor

Your docker is too old. Please use docker server >=20.10.6

@wolfogre wolfogre added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Feb 27, 2023
@chylek
Copy link
Author

chylek commented Mar 3, 2023

Thanks, updating Docker solved the issue.

@chylek chylek closed this as completed Mar 3, 2023
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/bug
Projects
None yet
Development

No branches or pull requests

3 participants