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:
commit
799abea0c4
9 changed files with 1379 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue