From 5f1ad3d5b654abd3c442e311c248e3f3c76bf5df Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 16 Mar 2024 02:51:35 +0000 Subject: Disable some cgit-pink features to maybe workaround an issue git clone repos from https://git.flylightning.xyz sometimes failed due to "error: garbage at end of loose object..." and fatal: loose object...". If I disable cache the problem gone. If I clean the cache and reenable the cahe the problem gone but will come back. So I'm currently testing to workaround it by disable some cgit-pink features and it seems also work. --- etc/cgitrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc') diff --git a/etc/cgitrc b/etc/cgitrc index c6bfd198..ae4574cd 100644 --- a/etc/cgitrc +++ b/etc/cgitrc @@ -7,18 +7,18 @@ enable-index-owner=0 mimetype-file=/etc/mime.types # https://stackoverflow.com/questions/16182421/cgit-and-nginx-url-rewrite virtual-root=/ -enable-follow-links=1 # useful but may makes page generation slow, maybe disable # can see the log via `journalctl -b -u uwsgi@cgit` and search less pager with sth. like `/[0-9]{3} msecs` -enable-blame=1 +#enable-blame=1 #enable-log-filecount=1 #enable-log-linecount=1 # showing branch merge, ex: https://git.flylightning.xyz/dwm_fly/log/?h=fly #enable-commit-graph=1 # not very useful, maybe disable -enable-subject-links=1 +#enable-follow-links=1 +#enable-subject-links=1 # `man cgitrc` uses $CGIT_REPO_URL instead of $CGIT_REPO_NAME, I guess maybe because repo name can be different from repo url? clone-url=https://$HTTP_HOST/$CGIT_REPO_URL https://codeberg.org/flyxyz123/$CGIT_REPO_URL -- cgit v1.2.3-70-g09d2