diff --git a/lighthouse-core/scripts/release/prepare-pristine.sh b/lighthouse-core/scripts/release/prepare-pristine.sh index 960136ed0569..4034fc0f9b18 100755 --- a/lighthouse-core/scripts/release/prepare-pristine.sh +++ b/lighthouse-core/scripts/release/prepare-pristine.sh @@ -9,10 +9,10 @@ set -euxo pipefail # Setup a pristine git environment cd ../ -if [[ ! -e lighthouse-pristine/ ]]; then - git clone git@github.com:GoogleChrome/lighthouse.git lighthouse-pristine -fi +# Delete the folder if it already exists. We need it super fresh +rm -rf lighthouse-pristine +git clone git@github.com:GoogleChrome/lighthouse.git lighthouse-pristine cd lighthouse-pristine/ if [[ -n "$(git status --porcelain)" ]]; then