i have post-receive hook running user 'git'. have virtualenv /python/ve//bin/activate readable git. running:
source /python/ve/<name>/bin/activate works fine user in git group.
when runs post-receive hook after push, error "source: not found".
i'm not sure else - hints appreciated.
this of guess, since haven't quoted complete post-receive hook, suspect don't have shebang line pointing /bin/bash @ top. post-receive hook should begin:
#!/bin/bash i suspect because if run strict bourne shell, dash, same error when trying source source.
Comments
Post a Comment