How can I update gitea? #1710

Closed
opened 2025-11-02 04:10:37 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @san127127 on GitHub (Apr 19, 2018).

I updated my gitea from 1.3.2 to 1.4.0 by replacing "gitea-1.3.2-windows-4.0-386.exe" by "gitea-1.4.0-windows-4.0-386.exe".

After doing this, I can't push anything onto the server. When I try to push, I got this line on command line "remote: ./hooks/pre-receive.d/gitea: line 2: D:/Version Control/Gitea/gitea-1.3.2-windows-4.0-386.exe: No such file or directory" because those hooks contains a path to the old gitea exe.

It seems there is no migration guide for this. How can I update gitea? Am I supposed to update those hooks one by one manually?

Originally created by @san127127 on GitHub (Apr 19, 2018). I updated my gitea from 1.3.2 to 1.4.0 by replacing "gitea-1.3.2-windows-4.0-386.exe" by "gitea-1.4.0-windows-4.0-386.exe". After doing this, I can't push anything onto the server. When I try to push, I got this line on command line "remote: ./hooks/pre-receive.d/gitea: line 2: D:/Version Control/Gitea/gitea-1.3.2-windows-4.0-386.exe: No such file or directory" because those hooks contains a path to the old gitea exe. It seems there is no migration guide for this. How can I update gitea? Am I supposed to update those hooks one by one manually?
GiteaMirror added the type/question label 2025-11-02 04:10:37 -06:00
Author
Owner

@lafriks commented on GitHub (Apr 19, 2018):

It is recommended to use more generic name like gitea.exe (just rename after download) to not have such issues.

In admin options (https://<your-domain>/admin) there is option (Resync pre-receive, update and post-receive hooks of all repositories.) to rewrite all hooks with new path:
image

@lafriks commented on GitHub (Apr 19, 2018): It is recommended to use more generic name like `gitea.exe` (just rename after download) to not have such issues. In admin options (`https://<your-domain>/admin`) there is option (`Resync pre-receive, update and post-receive hooks of all repositories.`) to rewrite all hooks with new path: ![image](https://user-images.githubusercontent.com/165205/38973678-c09248e6-43af-11e8-9fdf-2e19f80cc3dc.png)
Author
Owner

@san127127 commented on GitHub (Apr 19, 2018):

Thanks, I will try this tomorrow.
I don't think I am the only one having this problem, maybe this is worth mentioning in docs.

@san127127 commented on GitHub (Apr 19, 2018): Thanks, I will try this tomorrow. I don't think I am the only one having this problem, maybe this is worth mentioning in docs.
Author
Owner

@lafriks commented on GitHub (Apr 20, 2018):

Yes we would need some help on docs, so if you can submit PR for that it would be great

@lafriks commented on GitHub (Apr 20, 2018): Yes we would need some help on docs, so if you can submit PR for that it would be great
Author
Owner

@techknowlogick commented on GitHub (Jun 27, 2018):

@csleead I'm closing this ticket now, but feel free to re-open if needed.

@techknowlogick commented on GitHub (Jun 27, 2018): @csleead I'm closing this ticket now, but feel free to re-open if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1710