fix: bug: agents entrypoint does not set git safe.directory — worktrees fail after container restart (#517)
This commit is contained in:
parent
471b0b053a
commit
c7ca745233
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'"
|
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)"
|
log "Git credential helper configured for ${_bot_user}@${_forge_host} (password auth)"
|
||||||
fi
|
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).
|
# Configure tea CLI login for forge operations (runs as agent user).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue