feat(commit): add ability to create commit with different number of parents

This commit is contained in:
Aleksey Kulikov 2021-08-30 16:45:37 +03:00
parent c90561ed8f
commit 94b4116adf
15 changed files with 217 additions and 260 deletions

View file

@ -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();
});
});
}