fix: bug: agents entrypoint does not set git safe.directory — worktrees fail after container restart (#517) #524

Merged
dev-qwen merged 1 commit from fix/issue-517 into main 2026-04-09 19:45:36 +00:00

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).