mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
Fix windows build
This commit is contained in:
parent
26b33aa1b0
commit
652a628d1c
1 changed files with 1 additions and 1 deletions
|
@ -533,7 +533,7 @@ struct GitInputScheme : InputScheme
|
|||
static MakeNotAllowedError makeNotAllowedError(std::filesystem::path repoPath)
|
||||
{
|
||||
return [repoPath{std::move(repoPath)}](const CanonPath & path) -> RestrictedPathError {
|
||||
if (nix::pathExists(repoPath / path.rel()))
|
||||
if (fs::symlink_exists(repoPath / path.rel()))
|
||||
return RestrictedPathError(
|
||||
"Path '%1%' in the repository %2% is not tracked by Git.\n"
|
||||
"\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue