shorter delay between git pulls

This commit is contained in:
Daniel Langbein 2022-05-18 17:57:41 +02:00
parent a0a1793b15
commit 45ae68a776

View File

@ -3,5 +3,4 @@
git pull || exit $? git pull || exit $?
git submodule foreach 'git checkout master || git checkout main' || exit $? git submodule foreach 'git checkout master || git checkout main' || exit $?
# Sleep after each `git pull` to avoid `429 too many requests`. # Sleep after each `git pull` to avoid `429 too many requests`.
# 5s is not enough. git submodule foreach 'sleep 3s; if git pull | grep '\''^Updating'\''; then printf " %s" "$(basename $sm_path)" >> $toplevel/build-pkg/pkglist.tmp; fi'
git submodule foreach 'sleep 7.5s; if git pull | grep '\''^Updating'\''; then printf " %s" "$(basename $sm_path)" >> $toplevel/build-pkg/pkglist.tmp; fi'