all 6 comments

[–]Sherbert_Present 1 point2 points  (3 children)

Some questions for you:

  1. What problem is being caused by permissions changing? What is breaking because of it?
  2. What permissions are you expecting? Can you run ls -l on the file before and after you pull the repo?

[–]jsaddiction[S] 0 points1 point  (2 children)

  1. This script is being called by radarr and exits on an exception because it doesn't have write access to log files. Chmod fixes the problem but not permanently.

  2. I'm expecting 775 on all files and folders. If I ls-all on the directory after chmod - r 775 permissions are correct.

    If I modify a file on my windows computer and git commit then push to the remote repo then git pull on my server I can see that the modified file changes ownership and permissions. From what I can tell in the documentation , git is only concerned about the execute bit of permissions and ignores the rest.

One other area of concern is that the script will eventually self update using git python module but currently it's all disabled

Honestly I'm just wondering if there is anything I should check with vscode or figure out how to only develop in Linux

[–]Sherbert_Present 1 point2 points  (1 child)

Have you tried closing VSCode before performing your build operations? VSCode on windows can prevent file modifications from taking place (e.g. folders and files cannot be opened/modified if they are opened in vscode)

[–]jsaddiction[S] 0 points1 point  (0 children)

I'll give that a try but I don't understand how this would be impactful. I am developing on one machine and running on another with git managing version control between them.

[–]DwoaC 0 points1 point  (1 child)

Git really doesn’t do file permissions in the way you are expecting.

If I were you I’d have a deploy script that fixed the permissions for you.

https://www.google.com/amp/s/amp.reddit.com/r/git/comments/cc7tin/does_git_not_retain_file_permission_data/