feat: upgrade libgit2 to 1.4.0 (#45)

This commit is contained in:
Aleksey Kulikov 2022-02-16 16:57:52 +03:00 committed by GitHub
parent 7a067beeb9
commit d901d2e13f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 747 additions and 287 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();
});