-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
FYI I'm using my fork of this project which merges the changes with cgit version 1.2.3.
Using the default gitolite-authorization.lua script gitolite complains that the HOME variable is not initialized.
This happens both calling the cgit binary directly like so...
$ HOME=/var/lib/gitolite /path/to/cgit.cgi 1>cgit.html 2>cgit.log
and via nginx where I set the HOME environment variable via fastcgi_param.
I was able to make it work by modifying the io.popen call from
local handle = io.popen("gitolite list-phy-repos | gitolite access % " .. git.user .. " R any")
to
local handle = io.popen("env HOME=/var/lib/gitolite gitolite list-phy-repos | env HOME=/var/lib/gitolite gitolite access % " .. git.user .. " R any")
Metadata
Metadata
Assignees
Labels
No labels