Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ArPow] Use --work-tree with git apply #3046

Merged
merged 1 commit into from Sep 9, 2021

Conversation

omajid
Copy link
Contributor

@omajid omajid commented Sep 9, 2021

Description

This makes things work better in a source-tarball build, where there may be a .git directory somewhere in our parent directories but it's for a different repo than vstest. In a situation like that a plain git apply will (silently!) ignore patches because they wont apply to the unrelated repository. That will (eventually) make the source-build fail. --work-tree makes git directly use the directory that we care about.

Related issue

See dotnet/source-build#2445 for more details.

This makes things work better in a source-tarball build, where there may
be a .git directory somewhere in our parent directories but it's for a
different repo than vstest. In a situation like that a plain `git apply`
will (silently!) ignore patches because they wont apply to the unrelated
repository. That will (eventually) make the source-build fail.
`--work-tree` makes git directly use the directory that we care about.

See dotnet/source-build#2445 for more details.
@Haplois Haplois enabled auto-merge (squash) September 9, 2021 17:56
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.

None yet

2 participants