From 0dee62cd7b789756864deddb1d7f32293489d735 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 20 Dec 2019 18:39:58 +0000 Subject: feat(cgit-taz): Enable display of remote branches in listing --- services/cgit-taz/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'services') diff --git a/services/cgit-taz/default.nix b/services/cgit-taz/default.nix index b8eda829a473..4559eb4dbf71 100644 --- a/services/cgit-taz/default.nix +++ b/services/cgit-taz/default.nix @@ -9,6 +9,12 @@ with pkgs.third_party; let + # Patched version of cgit that builds repository URLs correctly + # (since only one repository is served) + monocgit = cgit.overrideAttrs(old: { + patches = old.patches ++ [ ./cgit_depot_url.patch ]; + }); + cgitConfig = writeText "cgitrc" '' # Global configuration virtual-root=/ @@ -23,14 +29,9 @@ let repo.desc=tazjin's personal monorepo repo.owner=tazjin repo.clone-url=https://git.tazj.in ssh://source.developers.google.com:2022/p/tazjins-infrastructure/r/depot + repo.enable-remote-branches=1 ''; - # Patched version of cgit that builds repository URLs correctly - # (since only one repository is served) - monocgit = cgit.overrideAttrs(old: { - patches = old.patches ++ [ ./cgit_depot_url.patch ]; - }); - thttpdConfig = writeText "thttpd.conf" '' port=8080 dir=${monocgit}/cgit -- cgit 1.4.1