feat(repository): add ability to lookup different types of git objects with []

This commit is contained in:
Aleksey Kulikov 2021-09-04 12:04:28 +03:00
parent f19a34a768
commit 2cf974c624
14 changed files with 124 additions and 67 deletions

View file

@ -19,7 +19,7 @@ void main() {
to: await Directory(tmpDir).create(),
);
repo = Repository.open(tmpDir);
tree = Tree.lookup(repo, Oid.fromSHA(repo, treeSHA));
tree = Tree.lookup(repo, treeSHA);
});
tearDown(() async {