From 867483e9240363f04ed095066fdea885cd184735 Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Mon, 27 Jul 2020 09:18:55 +0200 Subject: [PATCH] build: limit amount of data cloned for each repository This commit fixes an intermittent issue when we are cloning several repos with a huge history, throwing an unexpected error. Signed-off-by: Arturo Buzarra --- sdk/build-github.sh | 2 +- sdk/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/build-github.sh b/sdk/build-github.sh index 5bda75c98..c4213b974 100755 --- a/sdk/build-github.sh +++ b/sdk/build-github.sh @@ -154,7 +154,7 @@ if pushd ${YOCTO_INST_DIR}; then error "Revision \"${DY_REVISION}\" not found" fi fi - yes "" 2>/dev/null | ${REPO} init --no-repo-verify -u ${MANIFEST_URL} ${repo_revision} + yes "" 2>/dev/null | ${REPO} init --depth=1 --no-repo-verify -u ${MANIFEST_URL} ${repo_revision} ${REPO} forall -p -c 'git remote prune $(git remote)' time ${REPO} sync -d ${MAKE_JOBS} popd diff --git a/sdk/build.sh b/sdk/build.sh index bc89ce535..bdb10d345 100755 --- a/sdk/build.sh +++ b/sdk/build.sh @@ -209,7 +209,7 @@ if pushd ${YOCTO_INST_DIR}; then error "Revision \"${DY_REVISION}\" not found" fi fi - yes "" 2>/dev/null | ${REPO} init --no-repo-verify -u ${MANIFEST_URL} ${repo_revision} + yes "" 2>/dev/null | ${REPO} init --depth=1 --no-repo-verify -u ${MANIFEST_URL} ${repo_revision} ${REPO} forall -p -c 'git remote prune $(git remote)' time ${REPO} sync -d ${MAKE_JOBS} popd