diff --git a/Tests/LibWeb/WPT/run.sh b/Tests/LibWeb/WPT/run.sh index a82d1f7e18..072dff006b 100755 --- a/Tests/LibWeb/WPT/run.sh +++ b/Tests/LibWeb/WPT/run.sh @@ -41,10 +41,13 @@ pushd "${SCRIPT_DIR}" if [ ! -d "${SCRIPT_DIR}/wpt" ]; then # Clone patched web-platform-tests repository - git clone --depth 10000 https://github.com/web-platform-tests/wpt.git + mkdir wpt + git -C wpt init + git -C wpt remote add origin https://github.com/web-platform-tests/wpt.git # Switch to the commit that was used to generate tests expectations. Requires periodic updates. - git -C wpt checkout eedf737ce39c512d0ca3471f988972e3ece11822 + git -C wpt fetch --depth 1 origin eedf737ce39c512d0ca3471f988972e3ece11822 + git -C wpt checkout FETCH_HEAD git apply 0001-tools-Pass-product-name-to-update-metadata-fallback-.patch