Fix git committer identity (#2092)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Ensures native Git commits correctly set both author and committer
identities.
>
> - Add `withGitAuthor` to prepend `-c user.name=...` and `-c
user.email=...` to git args using settings-derived author
> - Update `gitCommit` (native path) to replace `--author` with
`withGitAuthor([..."commit", "-m", message])`, preserving `--amend`
handling and commit hash retrieval
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
67b33e2c2165ae9ebd84549abf8129d9bd9c6bef. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Fixes incorrect Git committer identity when creating commits with native
Git. We now set user.name and user.email via -c flags so both author and
committer match app settings.
- **Bug Fixes**
- Added withGitAuthor to prepend -c user.name and -c user.email to git
args.
- Updated gitCommit to use withGitAuthor instead of --author (works with
--amend).
<sup>Written for commit 67b33e2c2165ae9ebd84549abf8129d9bd9c6bef.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
正在显示
请
注册
或者
登录
后发表评论