We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09f5e71 commit 1e3ac5fCopy full SHA for 1e3ac5f
hooks/pluginable.php
@@ -572,6 +572,7 @@ function update_plugins() {
572
573
// Do a force reset on the repo to avoid merge conflicts, and obtain found latest version
574
$cmd = 'cd ' . $subfolder . ' && git reset --hard';
575
+ $cmd .= ' && sleep ' . mt_rand(1, 60); // Random sleep to avoid git rate limiting
576
$cmd .= ' && git clean -f -d';
577
$cmd .= ' && git fetch --all';
578
$cmd .= ' && git clone --depth 1 --branch "' . $latest_version . '" ' . $url . ' 2>/dev/null';
0 commit comments