Skip to content

Conversation

@mhassan1
Copy link
Contributor

What's the problem this PR addresses?

This PR fixes a bug when calling git clone with Git 2.52.0; currently, Yarn is executing git clone "-c core.autocrlf=false" ..., instead of the intended git clone -c core.autocrlf=false ..., and Git 2.52.0 does not like the quoted version.

Resolves #6982.

How did you fix it?

This splits -c core.autocrlf=false into separate arguments.

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@mhassan1 mhassan1 force-pushed the fix-git-autocrlf-arg branch from 5cfdbff to 8f16246 Compare November 20, 2025 14:30
Copy link

@bert-mccutchen bert-mccutchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm that this fixes the same issue that we are having after upgrading to Git 2.52.0.

@arcanis arcanis merged commit 0b3462a into yarnpkg:master Nov 20, 2025
26 checks passed
@arcanis
Copy link
Member

arcanis commented Nov 20, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug?]: Git 2.52.0 breaks git protocol

3 participants