mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor: pass sha hex string instead of Oid as argument
This commit is contained in:
parent
2cf974c624
commit
fb69de66d2
5 changed files with 25 additions and 19 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue