mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 11:44:59 +00:00
fix: Trim and normalize commit message history line endings
This commit is contained in:
parent
119b0fe95c
commit
82996d23e0
1 changed files with 1 additions and 0 deletions
|
@ -417,6 +417,7 @@ namespace SourceGit.Models
|
|||
|
||||
public void PushCommitMessage(string message)
|
||||
{
|
||||
message = message.Trim().ReplaceLineEndings("\n");
|
||||
var existIdx = CommitMessages.IndexOf(message);
|
||||
if (existIdx == 0)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue