Git clone via SSH hangs when markup.asciidoc is partially defined in config #2825

Closed
opened 2025-11-02 04:49:52 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @dllud on GitHub (Jan 27, 2019).

  • Gitea version (or commit ref): 1.7.0
  • Git version: 2.11.0
  • Operating system: Debian 9 (stable)
  • 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

Adding the markup.asciidoc section to the app.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 gitea 1.7.0.

Adding the section, with all properties defined, causes no problem (example bellow):

[markup.asciidoc]
ENABLED = false
; List of file extensions that should be rendered by an external command
FILE_EXTENSIONS = .adoc,.asciidoc
; External command to render all matching extensions
RENDER_COMMAND = "asciidoc --out-file=- -"
; Don't pass the file on STDIN, pass the filename as argument instead.
IS_INPUT_FILE = false

Commenting or deleting just one property causes the hang:

[markup.asciidoc]
ENABLED = false
; List of file extensions that should be rendered by an external command
;FILE_EXTENSIONS = .adoc,.asciidoc
; External command to render all matching extensions
RENDER_COMMAND = "asciidoc --out-file=- -"
; Don't pass the file on STDIN, pass the filename as argument instead.
IS_INPUT_FILE = false

Even adding just the section header causes ssh git clone to hang:

[markup.asciidoc]

This issue seems related to #5386.

Originally created by @dllud on GitHub (Jan 27, 2019). - Gitea version (or commit ref): 1.7.0 - Git version: 2.11.0 - Operating system: Debian 9 (stable) - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description Adding the `markup.asciidoc` section to the `app.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 gitea `1.7.0`. Adding the section, with all properties defined, causes no problem (example bellow): ```ini [markup.asciidoc] ENABLED = false ; List of file extensions that should be rendered by an external command FILE_EXTENSIONS = .adoc,.asciidoc ; External command to render all matching extensions RENDER_COMMAND = "asciidoc --out-file=- -" ; Don't pass the file on STDIN, pass the filename as argument instead. IS_INPUT_FILE = false ``` Commenting or deleting just one property causes the hang: ```ini [markup.asciidoc] ENABLED = false ; List of file extensions that should be rendered by an external command ;FILE_EXTENSIONS = .adoc,.asciidoc ; External command to render all matching extensions RENDER_COMMAND = "asciidoc --out-file=- -" ; Don't pass the file on STDIN, pass the filename as argument instead. IS_INPUT_FILE = false ``` Even adding just the section header causes ssh git clone to hang: ```ini [markup.asciidoc] ``` This issue seems related to #5386.
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 04:49:52 -06:00
Author
Owner

@zeripath commented on GitHub (Jan 28, 2019):

The problem is caused by any log.Warn in func NewContext() in setting.go.

The issue is that these are outputted on stdout which confuses git.

@zeripath commented on GitHub (Jan 28, 2019): The problem is caused by any `log.Warn` in `func NewContext()` in `setting.go`. The issue is that these are outputted on stdout which confuses git.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2825