From f0cdb7fc3237e9bd6ee35636a739004540fe9131 Mon Sep 17 00:00:00 2001 From: ministicraft Date: Mon, 13 Apr 2026 22:57:13 +0200 Subject: [PATCH] fix: disable git flock to fix flock(LOCK_EX) bad file descriptor error Set GIT_OPTIONAL_LOCKS=0 and gc.writeCommitGraph=false to avoid POSIX flock calls that fail on filesystems without lock support (NFS, overlayfs, some VPS setups). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .gitea/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index db05cbd..e052733 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -18,6 +18,8 @@ jobs: username: ${{ secrets.DEPLOY_USER }} key: ${{ secrets.DEPLOY_SSH_KEY }} script: | + export GIT_OPTIONAL_LOCKS=0 mkdir -p /var/www/prez-finistdev cd /var/www/prez-finistdev + git config --global gc.writeCommitGraph false git clone https://git.cloud.arnaud-pc.fr/ministicraft/finistdev-configuration-as-code.git . 2>/dev/null || git pull origin master