From 8bcce5f723aabf36a98d17b4515a984a107d8ee8 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 11 Jun 2024 11:08:20 +0800 Subject: [PATCH] fix: missing subject for the last commit (oldest in commit graph) --- src/Commands/QueryCommits.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Commands/QueryCommits.cs b/src/Commands/QueryCommits.cs index 075d6467..a67ee106 100644 --- a/src/Commands/QueryCommits.cs +++ b/src/Commands/QueryCommits.cs @@ -63,6 +63,9 @@ namespace SourceGit.Commands end = rs.StdOut.IndexOf('\n', start); } + if (start < rs.StdOut.Length) + _current.Subject = rs.StdOut.Substring(start); + if (_findFirstMerged && !_isHeadFounded && _commits.Count > 0) MarkFirstMerged();