Skip to content

500 when viewing a repo without a master branch #3181

Closed
go-gitea/git
#98
@yatesco

Description

@yatesco
  • Gitea version (or commit ref): gitea/gitea:latest pulled yesterday
  • Git version:git version 2.13.6 (Apple Git-96)
  • Operating system: macos
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

gitea throws a 500 if you view a repository without a master branch

To reproduce:

  • install a fresh gitea
  • create a new repo
  • git push -u origin some-other-branch
  • then view the repo in gitea and it throws a 500

P.S> - Loving gitea - thanks for everyone's hard work!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions