-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
500 Error in Empty repository #8538
Comments
It would be helpful to get the log in cases like this, however it appears simple to replicate. When trying the /issues/new endpoint I get:
And on /settings/hook/git:
|
So the problem is that either |
Lines 417 to 428 in 1d9a1a0
Implies that in an empty repo - |
Simplest Solution:
|
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Oct 16, 2019
Both issues/new and settings/hooks/git expect `ctx.Repo.GitRepo` to be set. This PR changes the context code to open the GitRepo. Fixes go-gitea#8538
lafriks
pushed a commit
that referenced
this issue
Oct 16, 2019
Both issues/new and settings/hooks/git expect `ctx.Repo.GitRepo` to be set. This PR changes the context code to open the GitRepo. Fixes #8538
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Oct 16, 2019
Both issues/new and settings/hooks/git expect `ctx.Repo.GitRepo` to be set. This PR changes the context code to open the GitRepo. Fixes go-gitea#8538
lunny
pushed a commit
that referenced
this issue
Oct 16, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[x]
):Description
step1. New/Create Repository
step2. http://xxxxx:3000/xxxx/xxxx/issues/new
or /xxxx/xxxx/settings/hooks/git
response 500 error
...
Screenshots
The text was updated successfully, but these errors were encountered: