From c8cd971f49a5dd9803c80a269e67c1b687a88a01 Mon Sep 17 00:00:00 2001 From: "Christoph K." Date: Wed, 8 Apr 2026 08:10:50 +0200 Subject: [PATCH] Fix CI: reset --hard + clean to repair stale submodule state git pull alone doesn't convert a leftover submodule directory to a regular directory. reset --hard + clean -fd ensures the working tree matches origin/main exactly. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 4e31bb7..3a6d144 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -15,7 +15,9 @@ jobs: - name: Pull code run: | if [ -d "${{ vars.DEPLOY_DIR }}/.git" ]; then - git -C ${{ vars.DEPLOY_DIR }} pull + git -C ${{ vars.DEPLOY_DIR }} fetch origin main + git -C ${{ vars.DEPLOY_DIR }} reset --hard origin/main + git -C ${{ vars.DEPLOY_DIR }} clean -fd else git clone http://192.168.1.4:3000/christoph/pamietnik.git ${{ vars.DEPLOY_DIR }} fi