After migrating from gogs push doesn't work #1268

Closed
opened 2025-11-02 03:54:52 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @Bwko on GitHub (Nov 22, 2017).

The upgrade from gogs docs are outdated
The option Rewrite all update hook of repositories is now called Resync pre-receive, update and post-receive hooks of all repositories.

Second: all pre-/post/update hook files are now called gitea. So when you run this command it creates new hooks instead of replacing the old Gogs hooks. When somebody pushes to the repo the old Gogs hook results in an error.

Originally created by @Bwko on GitHub (Nov 22, 2017). The [upgrade from gogs](https://docs.gitea.io/en-us/upgrade-from-gogs/ ) docs are outdated The option `Rewrite all update hook of repositories ` is now called `Resync pre-receive, update and post-receive hooks of all repositories.` Second: all pre-/post/update hook files are now called `gitea`. So when you run this command it creates new hooks instead of replacing the old Gogs hooks. When somebody pushes to the repo the old Gogs hook results in an error.
GiteaMirror added the type/questiontype/docs labels 2025-11-02 03:54:52 -06:00
Author
Owner

@lunny commented on GitHub (Nov 23, 2017):

User should remove that script manually, auto remove them is dangerous.

@lunny commented on GitHub (Nov 23, 2017): User should remove that script manually, auto remove them is dangerous.
Author
Owner

@Bwko commented on GitHub (Nov 23, 2017):

Then we should change the docs :)
But what is exactly "dangerous" about it?

If it's dangerous we should warn the user, just like we do when a user removes a repo.

@Bwko commented on GitHub (Nov 23, 2017): Then we should change the docs :) But what is exactly "dangerous" about it? If it's dangerous we should warn the user, just like we do when a user removes a repo.
Author
Owner

@lunny commented on GitHub (Nov 23, 2017):

@Bwko we don't know that hook scripts are from Gogs or user customize scripts.

@lunny commented on GitHub (Nov 23, 2017): @Bwko we don't know that hook scripts are from Gogs or user customize scripts.
Author
Owner

@akramparvez commented on GitHub (Jun 7, 2018):

Had a similar issue, removing hooks from Gogs fixed it.
Solution: https://github.com/go-gitea/gitea/issues/3558#issuecomment-372429183

@akramparvez commented on GitHub (Jun 7, 2018): Had a similar issue, removing hooks from Gogs fixed it. Solution: [https://github.com/go-gitea/gitea/issues/3558#issuecomment-372429183](url)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1268