From f87628186bd3b548c1f449adce3116d38557df5c Mon Sep 17 00:00:00 2001 From: Patrick Vacek Date: Fri, 11 Oct 2019 14:23:51 +0200 Subject: Fix CI error if repos are missing after previous runs. Signed-off-by: Patrick Vacek --- scripts/ci/checkout-oe.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/ci/checkout-oe.sh b/scripts/ci/checkout-oe.sh index fdc0e48..e8a2473 100755 --- a/scripts/ci/checkout-oe.sh +++ b/scripts/ci/checkout-oe.sh @@ -64,7 +64,9 @@ fi repo manifest -repo forall -c 'git reset --hard ; git clean -fdx' +# Try to clean up the repos in case they are messed up, but this returns an +# error code if the repos don't exist, which the subsequent repo sync will fix. +repo forall -c 'git reset --hard ; git clean -fdx' || true repo sync -d --force-sync -- cgit v1.2.3-54-g00ecf