mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
refactor(commit)!: return Tree object instead of Oid for tree getter
This commit is contained in:
parent
458c0bdc71
commit
050c0eb57a
5 changed files with 20 additions and 15 deletions
|
@ -502,7 +502,7 @@ void main() {
|
|||
test('successfully peels to object of provided type', () {
|
||||
final ref = repo.references['refs/heads/master'];
|
||||
final commit = repo[ref.target.sha] as Commit;
|
||||
final tree = repo[commit.tree.sha] as Tree;
|
||||
final tree = commit.tree;
|
||||
final peeledCommit = ref.peel(GitObject.commit) as Commit;
|
||||
final peeledTree = ref.peel(GitObject.tree) as Tree;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue