Skip to content

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.

2 participants