From d7ff6bc7560b0e2c8b51e1f92c7f910debbd2db7 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 12 May 2022 12:50:47 +0200 Subject: [PATCH] delay between git pulls --- git-pull | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git-pull b/git-pull index 0c29407..fae725e 100755 --- a/git-pull +++ b/git-pull @@ -2,4 +2,6 @@ git pull || exit $? git submodule foreach 'git checkout master || git checkout main' || exit $? -git submodule foreach 'if git pull | grep '\''^Updating'\''; then printf " %s" "$(basename $sm_path)" >> $toplevel/build-pkg/pkglist.tmp; fi' +# Sleep after each `git pull` to avoid `429 too many requests`. +# 5s is not enough. +git submodule foreach 'sleep 7.5s; if git pull | grep '\''^Updating'\''; then printf " %s" "$(basename $sm_path)" >> $toplevel/build-pkg/pkglist.tmp; fi'