Skip to content
Snippets Groups Projects
Verified Commit 564d28e8 authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

More robust fetching - try twice after random delay

parent a8a5b5d3
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@ update_mirror() {
cd "$GIT_MIRROR"
OPENWRT_URL="$GIT_MIRROR/openwrt"
for mirror in ./*; do
cd "$mirror" && git fetch --all
cd "$mirror" && { git fetch --all || { sleep $(( 1 + $RANDOM % 10 )); git fetch --all } }
cd "$GIT_MIRROR"
done
popd
......
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