nixpkgs/.github/actions
Matt Sturgeon 79f6bf1d2d
actions/checkout: manually fetch ci/pinned.json patch
In a shallow clone, `git fetch` may fail to apply thin packs due to
missing base objects.

We typically don't notice this with first-parent commits and prospective
merge commits, but it seems fairly common with arbitrary PR-branch
commits.

In this instance we don't need the full commit data, we only need to
apply its diff as a patch. So fetch the diff from GitHub's API and apply
using `git apply`.

This partially reverts commit 4787f35ede
2026-01-22 00:30:25 +00:00
..
checkout actions/checkout: manually fetch ci/pinned.json patch 2026-01-22 00:30:25 +00:00