Move installation, wrong hook path #3565

Closed
opened 2025-11-02 05:17:28 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @gizmo15 on GitHub (Jul 10, 2019).

Hi,

I use gitea 1.8.3 on a FreeBSD12. At the beginning, i use gitea on debian 8 and i migrate the data to the new env.

The installations are differents : on debian all data are in /home/git/gitea and on FreeBSD i use the package so the data are in /var/db/gitea.

When i want to push on the new env, i have this message :
remote: ./hooks/pre-receive.d/gitea: line 2: /home/git/gitea: No such file or directory

And if i search this path in /var/db/gitea/gitea-repositories i found this path on every hook for all my git repo.

How can i change that?

Thanks for the help!

Originally created by @gizmo15 on GitHub (Jul 10, 2019). Hi, I use gitea 1.8.3 on a FreeBSD12. At the beginning, i use gitea on debian 8 and i migrate the data to the new env. The installations are differents : on debian all data are in /home/git/gitea and on FreeBSD i use the package so the data are in /var/db/gitea. When i want to push on the new env, i have this message : remote: ./hooks/pre-receive.d/gitea: line 2: /home/git/gitea: No such file or directory And if i search this path in /var/db/gitea/gitea-repositories i found this path on every hook for all my git repo. How can i change that? Thanks for the help!
Author
Owner

@zeripath commented on GitHub (Jul 10, 2019):

Have you tried the Resynchronize hooks command on the admin page?

@zeripath commented on GitHub (Jul 10, 2019): Have you tried the Resynchronize hooks command on the admin page?
Author
Owner

@gizmo15 commented on GitHub (Jul 10, 2019):

I haven't notice this line... thanks it's work!

@gizmo15 commented on GitHub (Jul 10, 2019): I haven't notice this line... thanks it's work!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3565