Shared git repository checkouts in the Agent


We added support for sharing a single git repository across multiple agents on a host in buildkite-agent v3.10.0.

You can test it out with:

buildkite-agent start \
  --experiment git-mirrors \
  --git-mirrors-path /tmp/buildkite-git-mirrors

Currently it is just for the main repository, so submodules don’t use a reference repository, nor do plugins.

Keen to hear how folks are using it!

How do I skip the "Preparing Working Directory" step?

We’re currently having issues with with git-mirrors when using it to reference HEAD~1. It throws bad revision ‘HEAD~1’.

Would it also be possible to set git clone mirror flags similar to how git clone flags can be set with BUILDKITE_GIT_CLONE_FLAGS?