about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
authortazjin <mail@tazj.in>2021-03-31T21·21+0000
committertazjin <mail@tazj.in>2021-03-31T21·48+0000
commit99148c9b8f97f705e701a4437fdda364e37ed03a (patch)
treeb933b45d67794296b0ef6b9d1cefbc3fdf9d9eff /ops
parent77ef3177964da5354416c7ad59301ef2c749f216 (diff)
revert(monorepo-gerrit): Revert to using cgit for Gerrit r/2370
This reverts commit 3b05be2fd0c0035977dbac731c26651b9ff3e373.

Reason for revert: Sourcegraph still does not support fetching arbitrary refs, so we'll have to wait until its Gerrit integration lands before this will work correctly.

Change-Id: Icee82c50f92c34ba1741b608449aed16538ccbaa
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2721
Tested-by: BuildkiteCI
Reviewed-by: lukegb <lukegb@tvl.fyi>
Diffstat (limited to 'ops')
-rw-r--r--ops/nixos/monorepo-gerrit.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/ops/nixos/monorepo-gerrit.nix b/ops/nixos/monorepo-gerrit.nix
index eda64766f4b2..327ff633cbb6 100644
--- a/ops/nixos/monorepo-gerrit.nix
+++ b/ops/nixos/monorepo-gerrit.nix
@@ -53,18 +53,18 @@ in {
         "pull"
       ];
 
-      # Configure for Sourcegraph.
+      # Configure for cgit.
       gitweb = {
         type = "custom";
-        url = "https://cs.tvl.fyi";
-        linkname = "Sourcegraph";
-        project = "/depot";
-        revision = "/depot/-/commit/\${commit}";
-        branch = "/depot@\${branch}";
-        tag = "/depot@\${tag}";
-        roottree = "/depot@\${commit}";
-        file = "/depot@\${commit}/-/blob/\${file}";
-        filehistory = "/depot@\${commit}/-/blob/\${file}#&tab=history";
+        url = "https://code.tvl.fyi";
+        project = "/";
+        revision = "/commit/?id=\${commit}";
+        branch = "/log/?h=\${branch}";
+        tag = "/tag/?h=\${tag}";
+        roottree = "/tree/?h=\${commit}";
+        file = "/tree/\${file}?h=\${commit}";
+        filehistory = "/log/\${file}?h=\${branch}";
+        linkname = "cgit";
       };
 
       # Auto-link panettone bug links