-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
"api/v1/repos" panic when mirroring a repo #22452
Labels
Comments
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Jan 15, 2023
The API endpoints for "git" can panic if they are called on an empty repo. We can simply allow empty repos for these endpoints without worry as they should just work. Fix go-gitea#22452 Signed-off-by: Andrew Thornton <[email protected]>
I'm not sure why you're trying to mirror an empty repository... but of course these endpoint should not panic. |
jolheiser
pushed a commit
that referenced
this issue
Jan 15, 2023
The API endpoints for "git" can panic if they are called on an empty repo. We can simply allow empty repos for these endpoints without worry as they should just work. Fix #22452 Signed-off-by: Andrew Thornton <[email protected]>
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Jan 15, 2023
…itea#22457) Backport go-gitea#22457 The API endpoints for "git" can panic if they are called on an empty repo. We can simply allow empty repos for these endpoints without worry as they should just work. Fix go-gitea#22452 Signed-off-by: Andrew Thornton <[email protected]>
zeripath
added a commit
that referenced
this issue
Jan 15, 2023
…) (#22458) Backport #22457 The API endpoints for "git" can panic if they are called on an empty repo. We can simply allow empty repos for these endpoints without worry as they should just work. Fix #22452 Signed-off-by: Andrew Thornton <[email protected]>
Not empty, the repo is doing the mirror action, so it looks like empty. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Panic when mirroring a repo, like: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git
/api/v1/repos/mirrors/linux-stable-rt/git/trees/main?recursive=1
Gitea Version
1.18.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
helm
Database
MySQL
The text was updated successfully, but these errors were encountered: