-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Found a way to break all repositories inside a gitea instance #26264
Comments
I did exact the same step but I got the issue. |
What's your |
Here is all the parts of the app.ini file, which have a path.
Would that help? |
The problem is
The INI package has a quirk behavior: the path is inherited, so Then everything is removed under the Related to : Fix all possible setting error related storages and added some tests (#23911) |
This PR will fix go-gitea#26264, caused by go-gitea#23911. The package configuration derive is totally wrong when storage type is local in that PR. This PR fixed the inherit logic when storage type is local with some unit tests. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Backport #26271 by @lunny This PR will fix #26264, caused by #23911. The package configuration derive is totally wrong when storage type is local in that PR. This PR fixed the inherit logic when storage type is local with some unit tests. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Description
The task "Delete all repositories' archives (ZIP, TAR.GZ, etc..)" corrupts all git repositories.
One of the deleted files are the HEAD files at the root of one repository.
I send the screenshot of the error message of the ui
Gitea Version
1.20.2
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
It is running from the official docker image
Database
MySQL
The text was updated successfully, but these errors were encountered: