fix: squash should not change the original author

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-05-28 09:50:14 +08:00
parent 9affca1fb2
commit 2aac6779a5
No known key found for this signature in database

View file

@ -53,7 +53,7 @@ namespace SourceGit.ViewModels
succ = new Commands.Reset(_repo.FullPath, Target.SHA, "--soft").Use(log).Exec();
if (succ)
succ = new Commands.Commit(_repo.FullPath, _message, signOff, true, true).Use(log).Run();
succ = new Commands.Commit(_repo.FullPath, _message, signOff, true, false).Use(log).Run();
if (succ && autoStashed)
new Commands.Stash(_repo.FullPath).Use(log).Pop("stash@{0}");