From d295572d6a33a5f32ff422b34e6afcff3361857d Mon Sep 17 00:00:00 2001 From: tdback Date: Sat, 21 Dec 2024 16:15:49 -0500 Subject: use cgit's "dumb cloning" --- modules/customs/cgit/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/customs/cgit/default.nix') diff --git a/modules/customs/cgit/default.nix b/modules/customs/cgit/default.nix index 19eac01..2782a61 100644 --- a/modules/customs/cgit/default.nix +++ b/modules/customs/cgit/default.nix @@ -12,11 +12,9 @@ let about-filter = "${cfg.package}/lib/cgit/filters/about-formatting.sh"; source-filter = "${cfg.package}/lib/cgit/filters/syntax-highlighting.py"; enable-git-config = 1; - # Disable cgit's HTTP "dumb" protocol and use git itself to provide the - # HTTP "smart" protocol instead. - enable-http-clone = 0; + enable-http-clone = 1; remove-suffix = 1; - clone-url = "https://${cfg.virtualHost}/$CGIT_REPO_URL.git"; + clone-url = "https://${cfg.virtualHost}/$CGIT_REPO_URL"; scan-path = cfg.scanPath; }; in -- cgit v1.2.3