[Buildroot] [RFC PATCH 0/3] fix some corner cases for download/git v1

Ricardo Martincoski ricardo.martincoski at gmail.com
Thu Apr 12 09:28:52 UTC 2018


Hello,

This series brings 3 patches trying to cover some corner cases when downloading
packages with method git.

The first 2 patches are intended to fix autobuilder failures.
http://autobuild.buildroot.net/?reason=dtv-scan-tables-07b18ecef17493ac0908a2e112eae3fe269da7fa

This occurs only with old versions of git when a full fetch is needed:
 fatal: reference is not a tree: sha1
These occur when the git cache is dirty:
 error: The following untracked working tree files would be overwritten by checkout:
 error: The following untracked working tree files would be removed by checkout:
A dirty cache can also cause hash mismatches for the tarball.

Patch 3 should fix the case of unshallowing the git cache (when a shallow fetch
downloaded a ref, and later a commit behind this ref is needed). This scenario
is relevant both during the buildroot development (a revert of a bump) and when
a build farm is shared by projects that use different versions of buildroot.

Regards,
Ricardo


Ricardo Martincoski (3):
  download/git: fix fetch all refs for old git
  download/git: recover dirty cache
  download/git: unshallow when fetching all refs

 support/download/git | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

-- 
2.14.1



More information about the buildroot mailing list