diff --git a/scripts/build-and-notify.sh b/scripts/build-and-notify.sh index 0f990d7..f3b0002 100755 --- a/scripts/build-and-notify.sh +++ b/scripts/build-and-notify.sh @@ -51,7 +51,8 @@ trap 'notify "WZP Android build FAILED! Check /tmp/wzp-build.log"' ERR if [ "$DO_PULL" = "1" ]; then echo ">>> Pulling latest..." cd "$BASE_DIR/data/source" - git checkout -- . 2>/dev/null || true + git reset --hard HEAD 2>/dev/null || true + git clean -fd 2>/dev/null || true git pull origin feat/android-voip-client 2>&1 | tail -3 fi diff --git a/scripts/build-linux-docker.sh b/scripts/build-linux-docker.sh index d2fc9ad..2bea90c 100755 --- a/scripts/build-linux-docker.sh +++ b/scripts/build-linux-docker.sh @@ -52,7 +52,8 @@ trap 'notify "WZP Linux build FAILED! Check /tmp/wzp-linux-build.log"' ERR if [ "$DO_PULL" = "1" ]; then echo ">>> Pulling latest..." cd "$BASE_DIR/data/source" - git checkout -- . 2>/dev/null || true + git reset --hard HEAD 2>/dev/null || true + git clean -fd 2>/dev/null || true git pull origin feat/android-voip-client 2>&1 | tail -3 fi