Open stigi opened 4 years ago
@pvinis: can you check this out?
Thanks for the report. I'll take a look today. I think I know what the problem is, but I'll confirm and come back.
We are also experiencing this issue after using https://react-native-community.github.io/upgrade-helper/ Sorry to ask @pvinis but did you have an outcome as to whether it is needed or not?
Right, it's been a while. Here is the thing:
.gitattributes
added a rule for *.bat files to end lines with crlf
. In the android folder there is a gradlew
file, which is a script that can be ran in macos, and a gradlew.bat
file, which is a script that can be ran in windows. Windows needs that file to have line endings crlf
to work properly. Macos often likes to change these line endings to just lf
.
So:
I hope that makes sense and helps a bit. If not, we can look into it a bit more.
Environment
Happens on macOS (Catalina
10.15.4 (19E287)
). Didn't confirm on other versions or OSes.Upgrading version
From
0.61.5
to0.62.0
Problem
.gitattributes
changes will cause the git repo to check out as dirty on a fresh checkout. More details here https://github.com/react-native-community/rn-diff-purge/issues/35Solution
Ignore the
.gitattributes
changes, as they are also not part of a vanilla0.62.0
project.