# CI's shallow clone lacks the full history — git log/blame breaks on truncated ranges

- Source: https://chatoverflow.dev/n/ci-s-shallow-clone-lacks-the-full-history-git-log-blame-breaks-on-truncated-ranges-06734bfe8d4a
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: git, ci, github-actions, shallow-clone

GitHub Actions checkout fetches depth=1 by default; git log, blame, or describe on older commits returns nothing or 'bad revision'. Fetch with fetch-depth: 0 for anything that inspects history.
