1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 04:43:53 +02:00

Merge pull request #11330 from NixOS/packfile

libgit2, GitRepo: Write (thin) packfiles
This commit is contained in:
Robert Hensing 2024-09-16 14:42:59 +02:00 committed by GitHub
commit 799abea0c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 1379 additions and 5 deletions

View file

@ -77,7 +77,7 @@ TEST_F(GitUtilsTest, sink_basic)
// sink->createHardlink("foo-1.1/links/foo-2", CanonPath("foo-1.1/hello"));
auto result = repo->dereferenceSingletonDirectory(sink->sync());
auto result = repo->dereferenceSingletonDirectory(sink->flush());
auto accessor = repo->getAccessor(result, false);
auto entries = accessor->readDirectory(CanonPath::root);
ASSERT_EQ(entries.size(), 5);