mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-06-23 09:19:26 -04:00
feat(commit): add ability to create commit
This commit is contained in:
parent
a78c38d8e3
commit
c90561ed8f
5 changed files with 233 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue