A minimal Buildkite plugin that allows you to control git clone, fetch, and clean flags during checkout.
Using a preset:
steps:
- command: make test
plugins:
- envato/git-checkout-flags#v1.1.0:
preset: shallowUsing custom flags:
steps:
- command: make test
plugins:
- envato/git-checkout-flags#v1.1.0:
clone: "<clone-flags>"
fetch: "<fetch-flags>"Use a predefined set of flags. Available presets:
shallow: Optimized for fast, shallow clones with minimal historyunshallow: Detects shallow repositories (from a previous job) and fetches full history
Explicit clone, fetch, or clean options will override preset values.
Flags to pass to git clone. Sets BUILDKITE_GIT_CLONE_FLAGS.
Flags to pass to git fetch. Sets BUILDKITE_GIT_FETCH_FLAGS.
Flags to pass to git clean. Sets BUILDKITE_GIT_CLEAN_FLAGS.
To run the tests:
make testTo run linting:
make lintMIT (see LICENSE)