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>
This commit is contained in:
2026-04-13 22:57:13 +02:00
parent 641f7a917e
commit f0cdb7fc32

View File

@@ -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