mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(repository): add ability to lookup different types of git objects with []
This commit is contained in:
parent
f19a34a768
commit
2cf974c624
14 changed files with 124 additions and 67 deletions
|
@ -19,7 +19,7 @@ void main() {
|
|||
to: await Directory(tmpDir).create(),
|
||||
);
|
||||
repo = Repository.open(tmpDir);
|
||||
tag = Tag.lookup(repo, Oid.fromSHA(repo, tagSHA));
|
||||
tag = Tag.lookup(repo, tagSHA);
|
||||
});
|
||||
|
||||
tearDown(() async {
|
||||
|
@ -68,12 +68,12 @@ void main() {
|
|||
repository: repo,
|
||||
tagName: tagName,
|
||||
target: target,
|
||||
targetType: GitObjectType.commit,
|
||||
targetType: GitObject.commit,
|
||||
tagger: signature,
|
||||
message: message,
|
||||
);
|
||||
|
||||
final newTag = Tag.lookup(repo, oid);
|
||||
final newTag = Tag.lookup(repo, oid.sha);
|
||||
final tagger = newTag.tagger;
|
||||
final newTagTarget = newTag.target;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue