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"
|
"pull"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Configure for cgit.
|
# Configure for Sourcegraph.
|
||||||
gitweb = {
|
gitweb = {
|
||||||
type = "custom";
|
type = "custom";
|
||||||
url = "https://code.tvl.fyi";
|
url = "https://cs.tvl.fyi";
|
||||||
project = "/";
|
linkname = "Sourcegraph";
|
||||||
revision = "/commit/?id=\${commit}";
|
project = "/depot";
|
||||||
branch = "/log/?h=\${branch}";
|
revision = "/depot/-/commit/\${commit}";
|
||||||
tag = "/tag/?h=\${tag}";
|
branch = "/depot@\${branch}";
|
||||||
roottree = "/tree/?h=\${commit}";
|
tag = "/depot@\${tag}";
|
||||||
file = "/tree/\${file}?h=\${commit}";
|
roottree = "/depot@\${commit}";
|
||||||
filehistory = "/log/\${file}?h=\${branch}";
|
file = "/depot@\${commit}/-/blob/\${file}";
|
||||||
linkname = "cgit";
|
filehistory = "/depot@\${commit}/-/blob/\${file}#&tab=history";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configures integration with the locally running OpenLDAP
|
# Configures integration with the locally running OpenLDAP
|
||||||
|
|
Loading…
Reference in a new issue