I have a post-receive hook that is running as user 'git'. I have a virtualenv /python/ve//bin/activate that is readable by git. Running:
source /python/ve/<name>/bin/activate
works fine for a user in the git group.
When it runs as a post-receive hook after a push, I get the error "source: not found".
I'm not sure where else to look - any hints much appreciated.