Gitolite run hook as root

trying to allow git to run only a specific file as root

hooks/post-receive

#!/usr/bin/sudo ash

visudo working but not recommended

git ALL=(ALL:ALL) NOPASSWD:

visudo not working

git ALL=(ALL:ALL) NOPASSWD: /srv/git/repositories/gitolite-admin.git/hooks/post-receive

any suggestion will be highly appreciated