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

5 comments
Comment actions Permalink

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

1
Comment actions Permalink

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
Comment actions Permalink

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
Comment actions Permalink

Any updates on this?

 

Thanks!

0
Comment actions Permalink

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

0

Please sign in to leave a comment.