I am having trouble setting up git instaweb on OpenSUSE Tumbleweed.
I did install git-web and lighttpd.
When I do git instaweb in the root of my git project, the browser opens in a page that says No such projects found.
I tryed to put the project root in /srv/git but it also did not work.
This should be as simple as doing these commands in the project root:
git instaweb
and
git instaweb --stop
To solve this issue, I have noticed that the command
git instawebcreates a folder under.gitcalledgitweb. In this folder we can find a configuration file forlighttpdcalledlighttpd.confand another forgitweb.cgicalledgitweb_config.perl.Assuming you are in the root of the project, it is possible to run
lighttpd"by hand" like this:-fspecifies thelighttpdconfiguration file.-Dtellslighttpdnot to daemonize.When I access the browser page, I get on the console:
It seems to be a problem with
/usr/bin/git. I tried to add the following line to/etc/apparmor.d/usr.share.git-web.gitweb.cgi:But it still did not work. After some searching I found a way to debug
AppArmor:So I deleted the previously added line to
/etc/apparmor.d/usr.share.git-web.gitweb.cgiand added the following line:Now it works fine.