Fix (#2354): Implement auto-commit for local changes before preparing GitHub branch (#2373)
Closes #2354
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2373">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Automatically commits local changes before preparing a GitHub branch,
preventing failures on dirty repos and making branch setup reliable.
Closes #2354.
- **Bug Fixes**
- Auto-add and commit pending changes in prepareLocalBranch.
- Block with a clear error if a merge or rebase is in progress.
- Use locking and ensureCleanWorkspace to keep operations atomic and
clean.
- Export prepareLocalBranch for reuse.
<sup>Written for commit b3af874e41856d47d397343ded7e278336ad0d92.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
正在显示
请
注册
或者
登录
后发表评论