On Wed, Jun 21, 2006 at 03:05:35PM +0200, Dennis Stosberg wrote:
(2) Setting %ENV has no effect on spawned processes under mod_perl,
so the git commands would never find the project directories.
My first thought was to set $GIT_DIR on the commands' command
lines like in open($fh, '$GIT_DIR=blah git-rev-list ...') but it
would lead to an extra shell being spawned on every invocation
of a git command.
I haven't looked at gitweb much, but why can't you solve this by doing
manual pipe,fork,exec combinations? That should give you complete
control over the environment, right?
(IIRC, the last time I played with mod_perl and spawning processes, I
recall it doing something very confusing with the pipes I had open.)
--
Ryan Anderson
sometimes Pug Majere