N/APosted on - 01/04/2015
Why are all the exec files in my git repos clone losing their exec bit? I have laptop running Arch Linux and I have some git repos that is clone under ~/git but the exe files in this clone usually lose their exe bit. This behavior only affects the exe files in the clone how an I fix this problem?
Why is exe files in clone losing exec bit?
This is one of the few mysterious tasks that cannot easily be explained. Have you verified that the files in the git repo have the executable bit set correctly, in the first place? Check if they aren't accidentally reverted by other users with git clients utilizing the same repo and a funky umask. Maybe, you could monitor it and try to find out what's changing it constantly. Perhaps using Systemtap you can certainly figure out more about changes to file attributes. It might be just what you need.