-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Git clone via SSH hangs when markup.asciidoc is partially defined in config #5866
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
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
type/bug
Comments
The problem is caused by any The issue is that these are outputted on stdout which confuses git. |
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Jan 28, 2019
By default warning logs are printed to the stdout which breaks a git receive-pack etc. This PR disables the console logger whilst in serv.go Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath
added a commit
that referenced
this issue
Feb 3, 2019
By default, if `setting.NewContext()` prints out any warning logs, these are printed to the stdout breaking `git receive-pack` etc. meaning that even if there is a warning because of a minor problem in your app.ini but gitea starts despite this - you **CANNOT** push or pull over SSH. This PR disables the console logger whilst in `serv.go` Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Feb 3, 2019
By default, if `setting.NewContext()` prints out any warning logs, these are printed to the stdout breaking `git receive-pack` etc. meaning that even if there is a warning because of a minor problem in your app.ini but gitea starts despite this - you **CANNOT** push or pull over SSH. This PR disables the console logger whilst in `serv.go` Signed-off-by: Andrew Thornton <art27@cantab.net>
techknowlogick
pushed a commit
that referenced
this issue
Feb 3, 2019
By default, if `setting.NewContext()` prints out any warning logs, these are printed to the stdout breaking `git receive-pack` etc. meaning that even if there is a warning because of a minor problem in your app.ini but gitea starts despite this - you **CANNOT** push or pull over SSH. This PR disables the console logger whilst in `serv.go` Signed-off-by: Andrew Thornton <art27@cantab.net>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
type/bug
[x]
):Description
Adding the
markup.asciidoc
section to theapp.ini
config file without having all properties defined causes git clone via ssh to hang.I bumped into this issue after adding the
markup.asciidoc
section to my old config file, but I was able to reproduce the issue on a new installation with a config file generated from scratch by gitea1.7.0
.Adding the section, with all properties defined, causes no problem (example bellow):
Commenting or deleting just one property causes the hang:
Even adding just the section header causes ssh git clone to hang:
[markup.asciidoc]
This issue seems related to #5386.
The text was updated successfully, but these errors were encountered: