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

Pre Receive Hook Declined!! #85

Open
AkashRajvanshi opened this issue Mar 3, 2021 · 1 comment
Open

Pre Receive Hook Declined!! #85

AkashRajvanshi opened this issue Mar 3, 2021 · 1 comment

Comments

@AkashRajvanshi
Copy link

Hey, I try to push my code to repo but it says pre-receive hook declined. Currently, I'm using Ingres, but I also try with node port ( I also tried simple docker installation of gitea but the error persists). It always comes with this error. I found that some people face this same problem with gitea, they say go to site administration and click on Resynchronize pre-receive, update and post-receive hooks of all repositories will solve the issue but no success in my case.

→ git push origin master                                                                     
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 6 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 364 bytes | 364.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Gitea: Internal Server Error
remote: Unable to contact gitea: Post http://0.0.0.0:31867/api/internal/hook/pre-receive/hacstac/Test--Repo: dial tcp 0.0.0.0:31867: connect: connection refused
To http://gitea.skynet.local/hacstac/Test--Repo.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://gitea.skynet.local/hacstac/Test--Repo.git'

can you please help me? how should I resolve this issue??

@jfelten
Copy link
Owner

jfelten commented Mar 3, 2021

sounds like your repo has an internal hook defined that is failing: https://stackoverflow.com/questions/7986139/git-error-when-trying-to-push-pre-receive-hook-declined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants