From a72e67c8affff575c4c55ac56596b04c3704152f Mon Sep 17 00:00:00 2001 From: sterni Date: Thu, 22 Jun 2023 13:41:54 +0200 Subject: feat(tools/git-r): git subcommand to display r/numbers for commits 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 Reviewed-by: flokli --- ops/pipelines/static-pipeline.yaml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ops/pipelines') diff --git a/ops/pipelines/static-pipeline.yaml b/ops/pipelines/static-pipeline.yaml index 46b41480ed..af4f9d784e 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: | -- cgit 1.4.1