Learn more about these different git repos.
Other Git URLs
dist-git project sets by default SetEnv GIT_PROJECT_ROOT /var/lib/dist-git/git, but cgit_pkg_list script seems to search in /var/lib/dist-git/git/repositories.
dist-git
SetEnv GIT_PROJECT_ROOT /var/lib/dist-git/git
cgit_pkg_list
/var/lib/dist-git/git/repositories
I don't know how that should work, any idea? I have no such directory on my instances /var/lib/dist-git/git/repositories.
Also, shouldn't we recurse down one more directory? Say into <copruser>/<coprproject>, e.g. by find -maxdepth 2 -type d -mindepth 2
<copruser>/<coprproject>
find -maxdepth 2 -type d -mindepth 2
That part of copr-dist-git withcgit_pkg_list is buggy. It should generate a list of git repos to be used with project-list config option but it doesn't work correctly as you point out. You might to comment out project-list in /etc/cgitrc and use only scan-path setting.
project-list
/etc/cgitrc
scan-path
Proposed fix in #398
Metadata Update from @praiskup: - Issue assigned to praiskup
Before we close this I'd like to add two options to that script: - the directory that should be scanned, say --scan-path - optimization option, that will only recurse into specific copr, so we don't have to traverse everything when some new git repo is added
--scan-path
Once those are solved, the cgit content should be available instantly.
cgit
Metadata Update from @msuchy: - Issue tagged with: code-cleanup
Turns out that even depth 3 is too much nowadays, so scanning takes several minutes which we can not afford to run the script after each bug (see the dupe #815).
Metadata Update from @praiskup: - Issue tagged with: bug
Work-around for now: https://infrastructure.fedoraproject.org/cgit/ansible.git/commit/?id=3604a41f9eb56c5503b1ebaea141faee8127ec1b
Metadata Update from @praiskup: - Assignee reset
Commit 2e64a15 fixes this issue
Log in to comment on this ticket.