shallow clone depth
How many commits of history a runner fetches when it clones the repository for a job, set with GIT_DEPTH.
In more detail
New projects default to a depth of 20, which makes checkout fast. A job that needs older history, such as one that describes tags, needs a larger depth or 0 for the full history.
Related terms
- runner — A machine running the runner application that picks up a queued job, runs its steps and reports the result.
- pipeline — An automated sequence of steps, such as build, test, scan and publish, that runs on every change.
Taught in
- Faster Pipelines: Minutes You Can Win Back — GitLab Certified CI/CD Associate Exam Prep