about summary refs log tree commit diff
path: root/services/cgit-taz
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-20T18·39+0000
committerVincent Ambo <tazjin@google.com>2019-12-20T18·39+0000
commit0dee62cd7b789756864deddb1d7f32293489d735 (patch)
treee2a038b0be31e9188ff214cd8ab8bee59431cbd8 /services/cgit-taz
parent26a4dbdbe9be2f9b233b5c530ebf62a0f2c3fb8d (diff)
feat(cgit-taz): Enable display of remote branches in listing r/228
Diffstat (limited to 'services/cgit-taz')
-rw-r--r--services/cgit-taz/default.nix13
1 files changed, 7 insertions, 6 deletions
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 <mail@tazj.in>
     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