Skip to content

500 when viewing a repo without a master branch #3181

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

Closed
2 of 7 tasks
yatesco opened this issue Dec 13, 2017 · 2 comments · Fixed by go-gitea/git#98
Closed
2 of 7 tasks

500 when viewing a repo without a master branch #3181

yatesco opened this issue Dec 13, 2017 · 2 comments · Fixed by go-gitea/git#98
Assignees
Labels
Milestone

Comments

@yatesco
Copy link

yatesco commented Dec 13, 2017

  • 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!

@lunny
Copy link
Member

lunny commented Dec 15, 2017

Because /HEAD is ref: refs/heads/master but there is no master branch.

@lunny
Copy link
Member

lunny commented Dec 20, 2017

resolved by #3240

@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants