http://qs321.pair.com?node_id=1038472


in reply to Re: using Git::Wrapper with Apache
in thread using Git::Wrapper with Apache

james2vegas and Anne, thanks for your suggestions. Pretty sure its not the path, they look essentially the same either way - however to be extra sure I tried setting it at the beginning of the program

$ENV{'PATH'} = ...

the result was the same.

I have previously also tried specifying 'git_binary' as you suggested

my $git = Git::Wrapper->new({ dir => '/path/to/repo' , git_binary => ' +/path/to/git' });

which gives me the same: works on the command line, but falls over

[error] open3: exec of git version failed at /usr/local/share/perl5/Gi +t/Wrapper.pm line 112

in the browser.

Perhaps it is one of the other environment variables - but no idea which one! I will have a look. Thanks for your help anyway.

EDIT: forgot to mention, apache is not chrooted