Skip to content

[Bug?]: Git 2.52.0 breaks git protocol #6982

@adrianjappropo

Description

@adrianjappropo

Self-service

  • I'd be willing to implement a fix

Describe the bug

Using the latest Git for Windows release (git-for-windows/git#5959) causes an issue when running yarn install using Yarn 4.11.0 (but seemingly all versions of Yarn 4):

➤ YN0001: │ Repository URL: ssh://git@github.com/[private-org]/[private-repo].git
➤ YN0001: │ Error: invalid key: core.autocrlf
➤ YN0001: │ Fatal Error: unable to write parameters to config file
➤ YN0001: │ Exit Code: 128

I'm not sure if this is a Yarn issue or a Git issue but reporting it here anyway because that's where I encountered it.

To reproduce

Any package.json using the git protocol and using Git 2.52.0.

Environment

System:
    OS: Windows 11 10.0.26200
    CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor
  Binaries:
    Node: 22.21.0 - C:\Users\adria\AppData\Local\Temp\xfs-8f77040f\node.CMD
    Yarn: 4.11.0 - C:\Users\adria\AppData\Local\Temp\xfs-8f77040f\yarn.CMD
    npm: 10.9.4 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    jest: ^29.2.1 => 29.7.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions