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"
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue