I have this Debian VM on Google where I can't git pull even when I'm included in the group with permission to wrx.
So here are the specifics:
- the error returned by git pull is
error: cannot update the ref 'refs/remote/origin/my-branch': Permission Denied
- git directory has 775 permission
- git directory is owned by www-data:my-group
- git pull works when I change the ownership to my-username:my-group
- can't have myself as the owner of the git directory as www-data needs ownership to write
- the git repo is a CodeIgniter 3 project
- VM uses php7.4
Note:
- I've checked my-group with "getent group my-group" and can see my-username there