gitea migration

stuff about computer science and programming
Post Reply
User avatar
dendiz
Site Admin
Posts: 234
Joined: Wed Oct 10, 2018 3:48 am

gitea migration

Post by dendiz » Thu Mar 21, 2019 9:21 pm

this is the second time I had to migrate my gitea installation to another server. I had the same issues with the git hooks not working and my pushes being rejected because of this. The issue is that the configuration file for the hooks in the directory /data/gitea/git/repositories/<user>/<repo>/hooks/<hook>.d/gitea contains an invalid location for the configuration file as a parameter.

Code: Select all

"/usr/local/bin/gitea" hook --config='/etc/gitea/app.ini' update $1 $2 $3
should be

Code: Select all

"/usr/local/bin/gitea" hook --config='/data/gitea/conf/app.ini' update $1 $2 $3

Post Reply