feat(monorepo-gerrit): Use Sourcegraph as the gitweb for Gerrit
This points commit/file/etc. links from Gerrit to Sourcegraph instead of cgit. There's a minor problem with this: Some, but not all unsubmitted CLs are missing in Sourcegraph for unclear reasons so they lead to 404s. That problem is unrelated to this change and something we need to investigate separately. Change-Id: I9b0c1eca8781dc96984ba09b4a71960eb43583bd Reviewed-on: https://cl.tvl.fyi/c/depot/+/541 Reviewed-by: lukegb <lukegb@tvl.fyi>
This commit is contained in:
parent
d18faddba3
commit
3b05be2fd0
1 changed files with 10 additions and 10 deletions
|
@ -43,18 +43,18 @@ in {
|
|||
"pull"
|
||||
];
|
||||
|
||||
# Configure for cgit.
|
||||
# Configure for Sourcegraph.
|
||||
gitweb = {
|
||||
type = "custom";
|
||||
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";
|
||||
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";
|
||||
};
|
||||
|
||||
# Configures integration with the locally running OpenLDAP
|
||||
|
|
Loading…
Reference in a new issue