sourcegit: Alert windows with error message

OS: Ubunu 24.04 with all recent updates

Sourcegit version: 8.40, installed from released .deb package

git version: 2.43.0

Almost any action causes pop-up of the alert window with the error message, saying about incorrect usage of git rev-list command.

image

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (13 by maintainers)

Commits related to this issue

Most upvoted comments

This resolves the issue:

diff --git a/src/Commands/QueryCommitChildren.cs b/src/Commands/QueryCommitChildren.cs
index 293de912..4006b01f 100644
--- a/src/Commands/QueryCommitChildren.cs
+++ b/src/Commands/QueryCommitChildren.cs
@@ -9,8 +9,8 @@ namespace SourceGit.Commands
WorkingDirectory = repo;
Context = repo;
_commit = commit;
-            if (string.IsNullOrEmpty(filters))
-                filters = "--branches --remotes --tags";
+            //if (string.IsNullOrEmpty(filters))
+            filters = "--branches --remotes --tags";
Args = $"rev-list -{max}  --parents {filters} ^{commit}";
}

According to documentation, --decorate-refs-exclude is the option for git log, not git rev-list

If you can debug this project, try to add breakpoint to all lines that contains App.RaiseException(...) in src/Commands/Command.cs

I believe that I have enough skills to debug this project, but I’m not very familiar with C#. I mostly write in Python and C++. How can I get started?