Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (29.3k points)

I have a certain patch called my_pcc_branch.patch.

When I try to apply it, I get the following message:

$ git apply --check my_pcc_branch.patch

warning: src/main/java/.../ has type 100644, expected 100755

error: patch failed: src/main/java/.../

error: src/main/java/.../ patch does not apply

What does it mean?

How can I fix this problem?

1 Answer

0 votes
by (50.2k points)

To resolve this error you could use:

git apply --ignore-space-change --ignore-whitespace mychanges.patch

This will resolve your issue and for more information regarding this command.


Browse Categories