Skip to content

config can't parse multi-line values #667

@MichaelMure

Description

@MichaelMure

I found out that go-git is unable to parse a config with a multi-line value, like so:

[alias]
    myalias = "!f(){ \
        echo hello; \
        };f"

This is however explicitely valid as per https://git-scm.com/docs/git-config#_syntax

go-git/gcfg#1 and go-git/gcfg#2 address this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions