diff --git a/src/ViewModels/Repository.cs b/src/ViewModels/Repository.cs index a5d48648..92bfb288 100644 --- a/src/ViewModels/Repository.cs +++ b/src/ViewModels/Repository.cs @@ -834,7 +834,6 @@ namespace SourceGit.ViewModels if (_enableFirstParentInHistories) builder.Append("--first-parent "); - var invalidFilters = new List(); var filters = _settings.BuildHistoriesFilter(); if (string.IsNullOrEmpty(filters)) builder.Append("--branches --remotes --tags"); @@ -2129,7 +2128,7 @@ namespace SourceGit.ViewModels if (node.Path.Equals(path, StringComparison.Ordinal)) return node; - if (path.StartsWith(node.Path, StringComparison.Ordinal)) + if (path!.StartsWith(node.Path, StringComparison.Ordinal)) { var founded = FindBranchNode(node.Children, path); if (founded != null)