-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Custom post-receive hook fails with exec format error #5076
Comments
I think it's possible your hook script doesn't have correct first bang-line. Can you post content here? |
Ah, that's interesting. Thank you very much for your quick reply! |
@Corben78 I'm not 100% sure but I think in the old version something like Either way, I believe it is convention to have the bang-line (examples from Git also have it). |
post-receive hook does not work after upgrading, the content is: first line of .py script already contains: please help |
|
Sorry, previously im using 0.9.97 , email notification from post-receive script get sent log/hooks/post-receive.log contains: thanks |
@biji is your server Windows? |
It's linux, I misread
But now i have to change all repos post-receive |
* fix release creation via API * fix release create tests
[x]
):log/gogs.log
):Description
Custom git hook post-receive still fails with 0.11.34.1122 as mentioned in #4774
Short recap:
When having a custom git hook, a push to gogs reports internal error and is not executing the hook:
hooks/post-receive:
gogs.log
Output:
The text was updated successfully, but these errors were encountered: