refactor: pass sha hex string instead of Oid as argument

This commit is contained in:
Aleksey Kulikov 2021-09-04 12:21:42 +03:00
parent 2cf974c624
commit fb69de66d2
5 changed files with 25 additions and 19 deletions

View file

@ -99,7 +99,10 @@ void main() {
expect(revspec.from.id.sha, headSHA);
expect(revspec.to?.id.sha, '5aecfa0fb97eadaac050ccb99f03c3fb65460ad4');
expect(revspec.flags, GitRevParse.mergeBase);
expect(repo.mergeBase(revspec.from.id, revspec.to!.id), isA<Oid>());
expect(
repo.mergeBase(revspec.from.id.sha, revspec.to!.id.sha),
isA<Oid>(),
);
revspec.from.free();
revspec.to?.free();