From 1e3ac5f8ea3af6da6501f8583fbbd759f929a1df Mon Sep 17 00:00:00 2001 From: Stephen J Carnam Date: Mon, 18 Sep 2023 14:02:58 -0700 Subject: [PATCH] randomize updates --- hooks/pluginable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/hooks/pluginable.php b/hooks/pluginable.php index 6055804..d991461 100644 --- a/hooks/pluginable.php +++ b/hooks/pluginable.php @@ -572,6 +572,7 @@ function update_plugins() { // Do a force reset on the repo to avoid merge conflicts, and obtain found latest version $cmd = 'cd ' . $subfolder . ' && git reset --hard'; + $cmd .= ' && sleep ' . mt_rand(1, 60); // Random sleep to avoid git rate limiting $cmd .= ' && git clean -f -d'; $cmd .= ' && git fetch --all'; $cmd .= ' && git clone --depth 1 --branch "' . $latest_version . '" ' . $url . ' 2>/dev/null';