mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
feat(commit): add ability to create commit with different number of parents
This commit is contained in:
parent
c90561ed8f
commit
94b4116adf
15 changed files with 217 additions and 260 deletions
|
@ -33,11 +33,8 @@ void main() {
|
|||
});
|
||||
|
||||
test('finds object by short oid', () {
|
||||
final shortSha = '78b8bf';
|
||||
final odb = repo.odb;
|
||||
final oid = Oid.fromShortSHA(shortSha, odb);
|
||||
final oid = Oid.fromSHA(repo, lastCommit.substring(0, 5));
|
||||
expect(oid.sha, lastCommit);
|
||||
odb.free();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue