mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 05:26:02 +01:00
Support empty Git repositories / workdirs
Fixes #10039.
(cherry picked from commit 9e762454cf)
This commit is contained in:
parent
2e78ef5612
commit
15c0a7b2ce
5 changed files with 52 additions and 10 deletions
|
|
@ -20,4 +20,10 @@ ref<MemoryInputAccessor> makeMemoryInputAccessor()
|
|||
return make_ref<MemoryInputAccessorImpl>();
|
||||
}
|
||||
|
||||
ref<InputAccessor> makeEmptyInputAccessor()
|
||||
{
|
||||
static auto empty = makeMemoryInputAccessor().cast<InputAccessor>();
|
||||
return empty;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue