Git keeps changing my file permissions when on samba
Fixing these file permission changes
Actually it is not GIT that changes the files but samba.
When you checkout a a git repo in a samba-managed folder, some weird mask apply. In my case it was adding +x permission everywhere.
The solution is to turn off "map archive" in samba configuration, in the global space.
map archive = no
Reboot system or restart samba
To fully fully restart fresh - including file permission, erase everything but .git* directory, then restore files with git reset --hard :
$> rm -fr * $> git reset --hard