Skip to content
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

Error 500 when loading empty repository #18460

Closed
grisu48 opened this issue Jan 30, 2022 · 3 comments
Closed

Error 500 when loading empty repository #18460

grisu48 opened this issue Jan 30, 2022 · 3 comments
Labels
issue/duplicate The issue has already been reported.

Comments

@grisu48
Copy link

grisu48 commented Jan 30, 2022

Gitea Version

1.16.0+rc1

Git Version

2.30.2

Operating System

openSUSE Leap 15.3

How are you running Gitea?

I'm running gitea:latest as a podman container

Database

PostgreSQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/grisu48/fe729f43fea4735235ea772733ee5d53

Description

When creating a new empty repository, gitea results in a 500 error and I see the following in the log

2022/01/30 11:07:32 Started GET /phoenix/labenvmon for 10.88.0.1:54964
2022/01/30 11:07:32 ...ers/web/repo/view.go:860:renderCode() [E] GitRepo.IsEmpty: check empty: exit status 128 - fatal: your current branch 'main' does not have any commits yet

2022/01/30 11:07:32 Completed GET /phoenix/labenvmon 500 Internal Server Error in 62.831049ms

Screenshots

Screenshot 2022-01-30 at 12-13-41 labenvmon

@Gusted
Copy link
Contributor

Gusted commented Jan 30, 2022

Sounds like a duplicate of #18413

@zeripath
Copy link
Contributor

Yup already fixed and will be in rc2

@zeripath zeripath added the issue/duplicate The issue has already been reported. label Jan 30, 2022
@grisu48
Copy link
Author

grisu48 commented Jan 31, 2022

Perfect, thank you for fixing this 👍

@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/duplicate The issue has already been reported.
Projects
None yet
Development

No branches or pull requests

3 participants