mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-06 13:32:15 +00:00
fix: re-apply git identity every run, drive from env vars (#1242)
* fix: re-apply git identity on every agent invocation, source from env Cached/reconnected sandboxes weren't getting `git config --global` re-applied (the call was gated on new-sandbox creation), so commits picked up whatever identity the sandbox happened to have — sometimes an email not associated with any GitHub account, which Vercel rejects on preview deploys. Move the git config call out of the new-sandbox branch so it runs on every get_agent, and source the values from OPEN_SWE_GIT_AUTHOR_NAME / OPEN_SWE_GIT_AUTHOR_EMAIL env vars (defaulting to the existing bot identity) so forks can override without code changes. * cleanup --------- Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
This commit is contained in:
parent
6cecf429c7
commit
7d4d7e5833
1 changed files with 4 additions and 4 deletions
Loading…
Add table
Reference in a new issue