Bug 1218588

Summary: git instaweb returns "No such projects found"
Product: [openSUSE] openSUSE Tumbleweed Reporter: Marcelo Jimenez <marcelo.jimenez>
Component: AppArmorAssignee: Christian Boltz <suse-beta>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Marcelo Jimenez 2024-01-07 21:55:21 UTC
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.

As documented here: https://stackoverflow.com/questions/77767445/problem-with-git-instaweb-on-opensuse-tumbleweed-no-such-projects-found, I found out that the problem is in the configuration of AppArmor in the file provided with the package git-web.

In order to make it work, the following line needs to be added to the file /etc/apparmor.d/usr.share.git-web.gitweb.cgi:

/usr/libexec/git/git rix,

Best regards,
Marcelo.
Comment 1 Christian Boltz 2024-01-08 18:48:08 UTC
Thanks for the report!

SR 1137616 submitted.

For the records: since the profile and the git binary come from the same source package (which means there's no risk of backwards compability issues), I removed the old path /usr/lib/git/git from the profile.