I'm trying to write simple post-recieve script, which would switch to webserver user and pull git repository. To do so, I added git user to sudoers (I've added this to very last line):
git ALL = (www:www) NOPASSWD: /usr/bin/git
but I still can't execute
sudo -u www git pull origin production
without password prompt.