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

CI: Fix check patch to handle renames / deletes #1706

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

btashton
Copy link
Contributor

@btashton btashton commented Sep 3, 2020

Summary

Previously checkpatch.sh was using git show instead of git diff. The issue with this is we get a list of all the changes from all the commits, this breaks the CI check because it will look for those files in the final result of the patch (which might include a file that got renamed and then edited). We only want to look a the final changes which is what we get from diff.

We also simplify the computing of the commit range.

Impact

Style checks should be more robust now.

Testing

Local testing and this should be validated by the CI run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

checkpatch.sh does not handle git file renames
2 participants