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
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
This commit is contained in:
commit
3ac6cf7bf3
1 changed files with 4 additions and 0 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue