feat: upgrade libgit2 to 1.4.0

This commit is contained in:
Aleksey Kulikov 2022-02-16 13:25:22 +03:00
parent 7a067beeb9
commit bb433689cd
16 changed files with 705 additions and 253 deletions

View file

@ -146,16 +146,16 @@ void main() {
packbuilder.free();
});
test('returns hash of packfile', () {
test('returns name of packfile', () {
final packbuilder = PackBuilder(repo);
final odb = repo.odb;
packbuilder.add(odb.objects[0]);
Directory(packDirPath).createSync();
expect(packbuilder.hash.sha, '0' * 40);
expect(packbuilder.name, isEmpty);
packbuilder.write(null);
expect(packbuilder.hash.sha, isNot('0' * 40));
expect(packbuilder.name, isNotEmpty);
packbuilder.free();
});