diff options
author | sterni <sternenseemann@systemli.org> | 2023-06-22T11·41+0200 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2023-07-05T12·37+0000 |
commit | a72e67c8affff575c4c55ac56596b04c3704152f (patch) | |
tree | 70422c4219291111fc19d7f5433fe28352cc0d54 /ops | |
parent | aa2f1bbc69d456ca2af06e233e58f13c9cfa533f (diff) |
feat(tools/git-r): git subcommand to display r/numbers for commits r/6392
Sadly, this can't quite be an alias (which would be difficult to automatically set up anyways), since we want to check if an r/number is part of the (upstream) canon branch. The test script for the subcommand doubles up as a soundness check for our pipelines ref creation. Change-Id: I840af6556e50187c69490668bd8a18dd7dc25a86 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8844 Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'ops')
-rw-r--r-- | ops/pipelines/static-pipeline.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ops/pipelines/static-pipeline.yaml b/ops/pipelines/static-pipeline.yaml index 46b41480ed58..af4f9d784e60 100644 --- a/ops/pipelines/static-pipeline.yaml +++ b/ops/pipelines/static-pipeline.yaml @@ -35,6 +35,11 @@ steps: # # Revision numbers are defined as the number of commits in the # lineage of HEAD, following only the first parent of merges. + # + # Note that git does not fetch these refs by default, instead + # you'll have to modify your git config using + # `git config --add remote.origin.fetch '+refs/r/*:refs/r/*'`. + # The refs are available after the next `git fetch`. - label: ":git:" branches: "refs/heads/canon" command: | |