Skip to content

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

Closed
@dllud

Description

@dllud
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions