1
1
Fork 0
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:
Eelco Dolstra 2024-02-20 11:40:02 +01:00 committed by github-actions[bot]
parent 2e78ef5612
commit 15c0a7b2ce
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;
}
}