[Buildroot] [PATCH 3/7 v4] download/git: quickly exit when the cset does not exist

Ricardo Martincoski ricardo.martincoski at gmail.com
Sun Apr 29 16:46:40 UTC 2018


Hello,

On Sat, Apr 28, 2018 at 04:34 PM, Yann E. MORIN wrote:

> Check that the given cset is indeed something we can checkout. If not,
> then exit early.
> 
> This will be usefull when a later commit will trap any failing git
> command to try to recover the repository by doing a clone from scratch:
> when the cset is not a commit, it does not mean the repository is broken
> or what, and recloning from scratch would not help, so no need to trash
> a good cache.
> 
> Reported-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>

Reviewed-by: Ricardo Martincoski <ricardo.martincoski at gmail.com>
[with patches until this one applied: the script bails out when a wrong sha1 or
 wrong tag is used as version for a package, using git versions 1.7.1, 1.8.3,
 2.11.0, 2.14.1]
Tested-by: Ricardo Martincoski <ricardo.martincoski at gmail.com>


Regards,
Ricardo


More information about the buildroot mailing list