The solution I use is to run the command as the user that has the permissions you want to keep:
sudo -u user command This keeps the permissions from changing. I use it when updating git repositories on my VPS, while keeping the file permissions set to the webserver user.