Skip to content

Commit

Permalink
merge-base: Add a case for Parent + child
Browse files Browse the repository at this point in the history
  • Loading branch information
vHanda committed Dec 14, 2023
1 parent 9b3f4a1 commit 2ca0f3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/merge_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ extension MergeBase on GitRepository {
});

if (commits.length == 1) {
// FIXME: Wtf? Where are we stopping?
throw Exception('Stop?');
break;
}

seen.add(fromAncestor.hash);
Expand Down
1 change: 1 addition & 0 deletions test/merge_base_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ var independentData = [
Test(['C', 'G', 'dev', 'M', 'N'], ['C', 'G', 'dev'], 'AcrossCrossMerges'),
Test(['A', 'A^', 'A', 'M', 'N'], ['A', 'N'], 'ChangingOrderRepetition'),
Test(['A^^^', 'A^', 'A^^', 'A', 'N'], ['A', 'N'], 'ChangingOrder'),
Test(['A', 'CD1'], ['CD1'], 'ParentChild'),
];

class ATest {
Expand Down

0 comments on commit 2ca0f3e

Please sign in to comment.