summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-03-16 02:51:35 +0000
committerXiao Pan <gky44px1999@gmail.com>2024-03-16 06:45:35 +0000
commit5f1ad3d5b654abd3c442e311c248e3f3c76bf5df (patch)
treecb1120175854a37202f283cca5f9712c54de6424 /etc
parentfc4ebf54b65c6a21b2e2884fde84256953916145 (diff)
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/cgitrc6
1 files changed, 3 insertions, 3 deletions
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