From f3c9690d474f5efaefa82cf17116a1ca565e642e Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Tue, 19 Nov 2024 18:38:36 +0100 Subject: [PATCH] fix: input lines may contain several commits The first commit is always the immediate child, so take only 40 initial characters of the line --- src/Commands/QueryCommitChildren.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/QueryCommitChildren.cs b/src/Commands/QueryCommitChildren.cs index e6c76a99..c110ef94 100644 --- a/src/Commands/QueryCommitChildren.cs +++ b/src/Commands/QueryCommitChildren.cs @@ -19,7 +19,7 @@ namespace SourceGit.Commands protected override void OnReadline(string line) { if (line.Contains(_commit)) - _lines.Add(line); + _lines.Add(line.Substring(0, 40)); } public IEnumerable Result()