When sharing a git repo between wsl on windows10 and any linux, all files added/changed from wsl get the rw-rw-rw
attributes, even if I explicitly do a chmod ug+x file.py
before adding. If You do a ls -l
in wsl all files are listed with rwxrwxrwx no matter what.
On linux I have to do a find . -name "*.py" -exec chmod ug+x {} \;
on every pull/clone
What is the best way to fix this? Are there some settings in WSL? git hooks?