Why Can't My Post-receive Hook Run A Virtualenv Source Command?
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//bin/activate 
Solution 1:
This is something of a guess, since you haven't quoted your complete post-receive hook, but I suspect that you don't have a shebang line pointing to /bin/bash at the top. Your post-receive hook should begin:
#!/bin/bashI suspect this because if I run a strict Bourne shell, like dash, I get the same error when trying to source anything with source.
Post a Comment for "Why Can't My Post-receive Hook Run A Virtualenv Source Command?"