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 <arturo.buzarra@digi.com>
This commit is contained in:
parent
3fdb880213
commit
867483e924
|
|
@ -154,7 +154,7 @@ if pushd ${YOCTO_INST_DIR}; then
|
||||||
error "Revision \"${DY_REVISION}\" not found"
|
error "Revision \"${DY_REVISION}\" not found"
|
||||||
fi
|
fi
|
||||||
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)'
|
${REPO} forall -p -c 'git remote prune $(git remote)'
|
||||||
time ${REPO} sync -d ${MAKE_JOBS}
|
time ${REPO} sync -d ${MAKE_JOBS}
|
||||||
popd
|
popd
|
||||||
|
|
|
||||||
|
|
@ -209,7 +209,7 @@ if pushd ${YOCTO_INST_DIR}; then
|
||||||
error "Revision \"${DY_REVISION}\" not found"
|
error "Revision \"${DY_REVISION}\" not found"
|
||||||
fi
|
fi
|
||||||
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)'
|
${REPO} forall -p -c 'git remote prune $(git remote)'
|
||||||
time ${REPO} sync -d ${MAKE_JOBS}
|
time ${REPO} sync -d ${MAKE_JOBS}
|
||||||
popd
|
popd
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue