gitea: sub-branches throw 500

  • Gitea version (or commit ref): 1.9.3 built with go1.13.1
  • Git version: 2.23.0
  • Operating system: FreeBSD (Freenas)
  • 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

I’m able to create a feature/nameoffeature branch but when I try to load it on gitea it throws 500 errors …

Screenshots

image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 42 (22 by maintainers)

Commits related to this issue

Most upvoted comments

@kevans91 Since go-git/go-git#39 merged, could you send a PR and confirm this bug is fixed in FreeBSD?

Hi,

I sent a PR and was told it can’t be merged until a release of go-git is cut that includes it. =( #11208

It does fix the problem on FreeBSD and I’ve got a patch for our ports system that we can carry locally with no real problem until a new release is made.

Hello,

I don’t know If my problem is related to this issue, but I got a similar behavior when I want to display the branch page of my repos.

I don’t know why but on my branch settings (on the protected branch section) there are an unknown branch named: ._master. When I want select this unknown branch, I got an error 500.

I success to resolve my problem with step below:

On my server, I created the ._master reference file:

/data/git/repositories/frd404/repos.git/refs/heads# cp master ._master

Try to select the ._master branch on the protected section (without validate the forms).

Then remove the ._masterfile previously created:

/data/git/repositories/frd404/repos.git/refs/heads# rm ._master

At this moment, the ._master branch seem be deleted from gitea database.

I hope It’s can help (If my problem is related to this issue ^^) …

Default is Master, image image

@guillep2k Yes,

  • it’s a fresh install of gitea on freenas 11.3 plugin so no upgrade there
  • fresh repo created from gitea webui works with single words but not sub-branches (the branch seem to be created but selecting it in the ui throw the 500 error)
  • also tried to create a branch from local git but and push and same result.