aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2024-12-21 16:15:49 -0500
committertdback <tyler@tdback.net>2024-12-21 16:15:49 -0500
commitd295572d6a33a5f32ff422b34e6afcff3361857d (patch)
treec8ecd5ca33ea66547771cf78f67b572b95d2cb0d /modules
parent0a5754541bb01e96021ca7ee74f1256a8ee68bc4 (diff)
use cgit's "dumb cloning"
Diffstat (limited to 'modules')
-rw-r--r--modules/customs/cgit/default.nix6
1 files changed, 2 insertions, 4 deletions
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