Why is exe files in clone losing exec bit?

Asked By 70 points N/A Posted on -

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?

Answered By 0 points N/A #190176

Why is exe files in clone losing exec bit?


Hi Joseph!

  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. Click this link


Mathew Tand

Login/Register to Answer

Related Questions