Gitea: After migrating from gogs push doesn't work

Created on 22 Nov 2017  路  4Comments  路  Source: go-gitea/gitea

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.

kindocs kinquestion

Most helpful comment

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

All 4 comments

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

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 we don't know that hook scripts are from Gogs or user customize scripts.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

haytona picture haytona  路  3Comments

jorise7 picture jorise7  路  3Comments

lunny picture lunny  路  3Comments

internalfx picture internalfx  路  3Comments

BRMateus2 picture BRMateus2  路  3Comments