Skip to content

Remove incorrect and redundant options from git apply command line #877

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

Merged
merged 1 commit into from
May 27, 2021
Merged

Conversation

tmiasko
Copy link
Contributor

@tmiasko tmiasko commented May 27, 2021

In d0712f6 patch -Np1 -i was replaced
with git apply -Np1, but -N flag has a different meaning in git:

mark new files with git add --intent-to-add

Additionally the flag was added in v2.19.0, while git version used on
perf.rust-lang.org is apparently older and execution fails with error:

unknown switch `N'

The default behaviour of git apply should be sufficient to match the
original one. Remove all flags from the command line.

In d0712f6 `patch -Np1 -i` was replaced
with `git apply -Np1`, but `-N` flag has a different meaning in git:

> mark new files with `git add --intent-to-add`

Additionally the flag was added in v2.19.0, while git version used on
perf.rust-lang.org is apparently older and execution fails with error:

> unknown switch `N'

The default behaviour of git apply should be sufficient to match the
original one. Remove all flags from the command line.
@Mark-Simulacrum Mark-Simulacrum merged commit 8054ed4 into rust-lang:master May 27, 2021
@wesleywiser
Copy link
Member

Thanks for fixing this @tmiasko! Looks like I'm running git 2.30.2 locally so I didn't catch that.

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.

4 participants