Bug 1218588 - git instaweb returns "No such projects found"
Summary: git instaweb returns "No such projects found"
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: AppArmor (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Christian Boltz
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-07 21:55 UTC by Marcelo Jimenez
Modified: 2024-01-08 18:48 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.