Merge pull request 'fix: bug: agents entrypoint does not set git safe.directory — worktrees fail after container restart (#517)' (#524) from fix/issue-517 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful

This commit is contained in:
dev-qwen 2026-04-09 19:45:35 +00:00
commit 3ac6cf7bf3

View file

@ -69,6 +69,10 @@ CREDEOF
gosu agent bash -c "git config --global credential.helper '/home/agent/.git-credentials-helper'"
log "Git credential helper configured for ${_bot_user}@${_forge_host} (password auth)"
fi
# Set safe.directory to work around dubious ownership after container restart
# (https://github.com/disinto-admin/disinto/issues/517)
gosu agent bash -c "git config --global --add safe.directory '*'"
}
# Configure tea CLI login for forge operations (runs as agent user).