You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I sadly have some contributors that use windows, seems by default git on windows (note: wsl git doesnt do this) converts newlines \n to \r\n on checkout (and back when pushing).
this fucks up devcontainer post install shell script running in linnux ("bash\r" not found), I fixed this by putting the following line unto .gitattributes:
*.sh text eol=lf
not sure if this might have any undesired sideeffects?
I need to add this line to the post install (before uv sync) for git to work (win & osx)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
this fucks up devcontainer post install shell script running in linnux ("bash\r" not found), I fixed this by putting the following line unto .gitattributes:
*.sh text eol=lf
not sure if this might have any undesired sideeffects?
git config --global --add safe.directory /workspaces/<repo-name>
I did not create a PR because not sure if this has sideeffects, happy for feedback
Beta Was this translation helpful? Give feedback.
All reactions