Skip to content
Snippets Groups Projects
Commit 3a2253bc authored by Esben Haabendal's avatar Esben Haabendal
Browse files

CI: Allow use with shallow clone CI setup


Signed-off-by: default avatarEsben Haabendal <esben.haabendal@huawei.com>
parent 3c49407b
No related branches found
No related tags found
1 merge request!38CI: Attempt to throttle load caused by builds better
......@@ -77,6 +77,10 @@ stages:
# something like that... Without this we get errors like
# fatal: couldn't find remote ref refs/heads/master
- git checkout -b master
# The repo command does not like shallow repos
- if [ "$(git rev-parse --is-shallow-repository)" = "true" ] ; then
git fetch --unshallow ;
fi
# Create/maintain a mirror of all manifest repositories in runner
# persistent storage, and use that as reference when initializing the
# build repo, effectively reducing the time spent fetching git repos to
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment