Closed
Description
Gitea Version
1.15.3
Git Version
2.30.2
Operating System
Docker
How are you running Gitea?
Docker, image gitea/gitea:1.15.3
Database
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
https://gist.github.com/noiaverbale/4c3b1706e54f581c32eb3790fa7f7373
Description
When I click "New Pull Request" button from a branch where an empty csv file has been added to, an error 500 appears.
To reproduce it you just need to:
- checkout a new branch
- add, commit and push empty file with csv extension
- open new PR or compare with parent branch
URLs
- Branch with empty csv file: https://try.gitea.io/noiaverbale/empty-csv-issue-test/src/branch/empty-csv
- After clicking "New Pull Request" button: https://try.gitea.io/noiaverbale/empty-csv-issue-test/compare/master...empty-csv