1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 15:02:42 +01:00

Support empty Git repositories / workdirs

Fixes #10039.
This commit is contained in:
Eelco Dolstra 2024-02-20 11:40:02 +01:00
parent d52d91fe7a
commit 9e762454cf
5 changed files with 52 additions and 10 deletions

View file

@ -20,4 +20,10 @@ ref<MemoryInputAccessor> makeMemoryInputAccessor()
return make_ref<MemoryInputAccessorImpl>();
}
ref<InputAccessor> makeEmptyInputAccessor()
{
static auto empty = makeMemoryInputAccessor().cast<InputAccessor>();
return empty;
}
}