diff --git a/SeeGitApp/Models/RepositoryGraphBuilder.cs b/SeeGitApp/Models/RepositoryGraphBuilder.cs index 1fcc359..274fd7c 100644 --- a/SeeGitApp/Models/RepositoryGraphBuilder.cs +++ b/SeeGitApp/Models/RepositoryGraphBuilder.cs @@ -93,6 +93,10 @@ private void AddCommitsToGraph(Commit commit, CommitVertex childVertex) _graph.AddEdge(edge); _edges.Add(edge.Id, edge); } + else + { + return; + } } foreach (var parent in commit.Parents)