Pycharm changes file permissions on save

Answered

Hi,

When I save a file, pycharm changes the file permissions and add execute permission to the file. How can I prevent this and keep the file's original permissions?

Thanks

Anand

1
5 comments

Please try disabling the "Use safe write" option under Settings | General.

1
Avatar
Permanently deleted user

Thanks. That worked for existing files. When I create a new file from pycharm, execute permissions are set. Is there a way to prevent that?

Anand

0
Avatar
Permanently deleted user

Any updates on this? This is the most annoying thing ever. On every git commit I have to be very careful to not accidentally commit random file mode changes.

0
Avatar
Permanently deleted user

Any updates on this?

 

Thanks!

0

Hi! Please vote for IDEA-152607, I believe this ticket covers the problem.

0

Please sign in to leave a comment.