feat(commit): add ability to create commit

This commit is contained in:
Aleksey Kulikov 2021-08-27 21:17:19 +03:00
parent a78c38d8e3
commit c90561ed8f
5 changed files with 233 additions and 5 deletions

View file

@ -39,7 +39,7 @@ void main() {
group('fromShortSHA()', () {
test('initializes successfully from short hex string', () {
final odb = repo.odb;
final oid = Oid.fromShortSHA(sha.substring(0, 4), odb);
final oid = Oid.fromShortSHA(sha.substring(0, 5), odb);
expect(oid, isA<Oid>());
expect(oid.sha, sha);